Skip to content

require opt-in to access the pickle codec #4404

Closed

Description

@d-v-b

the pickle codec is useful but also a huge security hole, since it allows arbitrary code execution based on encoded data. opening data encoded with the pickle codec should probably fail unless the user has explicitly opted in to accessing the unsafe codec, e.g. via an environment variable and runtime configuration setting.

Activity

  1. bhaskargurram-ai commented on Oct 2, 2026

    @bhaskargurram-ai
    Contributor

    I'd like to work on this. My plan is a config option, off by default with an environment-variable override, checked before the pickle codec decodes, with an error that names the setting. Happy to use whatever name you prefer.

  2. added a commit that references this issue on Oct 2, 2026
    aa9ca52
  3. added 3 commits that reference this issue on Oct 26, 2026
    9b7b93b
    c1281ae
    a2f2415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions