CVE-2025-5174: Pypickle Pypickle Unsafe Deserialization Vulnerability Vulnerability
MODERATECVE-2025-5174 is a MODERATE (CVSS 5.3) pypickle unsafe deserialization vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Pypickle libraries in the PyPI ecosystem. The issue involves pypickle unsafe deserialization vulnerability. Remediation is available by upgrading affected packages to version 2.0.0.
CVE-2025-5174 at a Glance
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).
How to Fix CVE-2025-5174
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.
pip install pypickle>=2.0.0
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-5174, 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. 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
CVE-2025-5174 Affected Pypickle Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pypickle
|
PyPI |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is CVE-2025-5174?
Which Pypickle versions are affected?
What version fixes CVE-2025-5174?
Is pypickle affected?
What is the CVSS score of CVE-2025-5174?
What CWE is associated with CVE-2025-5174?
How can I check PyPI dependencies for CVE-2025-5174?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5qwj-342r-h886",
"modified" : "2025-06-04T21:04:20Z",
"published" : "2025-05-26T09:30:45Z",
"aliases" : [ "CVE-2025-5174" ],
"summary" : "pypickle unsafe deserialization vulnerability",
"details" : "A vulnerability was found in erdogant pypickle up to 1.1.5 and classified as problematic. Affected by this issue is the function load of the file pypickle/pypickle.py. The manipulation leads to deserialization. Local access is required to approach this attack. 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 identified as 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-5174"
}, {
"type" : "WEB",
"url" : "https://github.com/erdogant/pypickle/issues/2"
}, {
"type" : "WEB",
"url" : "https://github.com/erdogant/pypickle/issues/2#issuecomment-2889146579"
}, {
"type" : "WEB",
"url" : "https://github.com/erdogant/pypickle/commit/14b4cae704a0bb4eb6723e238f25382d847a1917"
}, {
"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-45.yaml"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.310262"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.310262"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.579157"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-502" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-27T22:36:41Z",
"nvd_published_at" : "2025-05-26T07:15:26Z"
}
}