CVE-2025-5175: Pypickle Pypickle Incorrect Privilege Assignment Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-qpxx-2cwh-r5vh
CVSS 5.3
CWE-266
Published
Advisory Summary

CVE-2025-5175 is a MODERATE (CVSS 5.3) pypickle incorrect privilege assignment vulnerability vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Pypickle libraries in the PyPI ecosystem. The issue involves pypickle incorrect privilege assignment vulnerability. Remediation is available by upgrading affected packages to version 2.0.0.

CVE-2025-5175 at a Glance

CVE Identifier CVE-2025-5175
GHSA Identifier GHSA-qpxx-2cwh-r5vh
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Pypickle
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-5175

To remediate this vulnerability, upgrade all affected Pypickle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pypickle fixed: 2.0.0
pip install pypickle>=2.0.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pypickle

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-5175, inspect your installed packages using pip:

pip show pypickle

Analyze the terminal output to locate any version of Pypickle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.

Note: The pip show pypickle command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In Pypickle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A vulnerability was found in erdogant pypickle up to 1.1.5. It has been classified as critical. This affects the function Save of the file pypickle/pypickle.py. The manipulation leads to improper authorization. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used. Upgrading to version 2.0.0 is able to address this issue. The patch is named 14b4cae704a0bb4eb6723e238f25382d847a1917. It is recommended to upgrade the affected component.

CVE-2025-5175 Affected Pypickle Versions

1 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
pypickle
PyPI
< 2.0.0
2.0.0

References

Frequently Asked Questions

What is CVE-2025-5175?
CVE-2025-5175 is a security vulnerability in Pypickle involving pypickle Incorrect Privilege Assignment vulnerability under CWE-266: Incorrect Privilege Assignment.
Which Pypickle versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: pypickle.
What version fixes CVE-2025-5175?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pypickle affected?
Yes, pypickle is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What is the CVSS score of CVE-2025-5175?
CVE-2025-5175 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2025-5175?
CVE-2025-5175 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check PyPI dependencies for CVE-2025-5175?
Run the dependency tree command: 'pip show pypickle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qpxx-2cwh-r5vh",
  "modified" : "2025-06-04T21:04:25Z",
  "published" : "2025-05-26T09:30:45Z",
  "aliases" : [ "CVE-2025-5175" ],
  "summary" : "pypickle Incorrect Privilege Assignment vulnerability",
  "details" : "A vulnerability was found in erdogant pypickle up to 1.1.5. It has been classified as critical. This affects the function Save of the file pypickle/pypickle.py. The manipulation leads to improper authorization. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used. Upgrading to version 2.0.0 is able to address this issue. The patch is named 14b4cae704a0bb4eb6723e238f25382d847a1917. It is recommended to upgrade the affected component.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pypickle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-5175"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/erdogant/pypickle/issues/3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/erdogant/pypickle/issues/3#issue-3070689116"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/erdogant/pypickle/issues/3#issuecomment-2888589652"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/erdogant/pypickle/commit/14b4cae704a0bb4eb6723e238f25382d847a1917"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/PrinceRaj-0/Vulnerability-Disclosure/blob/main/CVE-2025-5175.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/erdogant/pypickle"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/erdogant/pypickle/releases/tag/2.0.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pypickle/PYSEC-2025-46.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.310263"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.310263"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?submit.579824"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-05-27T19:54:23Z",
    "nvd_published_at" : "2025-05-26T08:15:19Z"
  }
}