GHSA-49gj-c84q-6qm9: Picklescan Picklescan Is Missing Detection When Vulnerability
MODERATEGHSA-49gj-c84q-6qm9 is a MODERATE picklescan is missing detection when vulnerability (General Security Weakness) affecting Picklescan libraries in the PyPI ecosystem. The issue involves picklescan is missing detection when calling built-in python cprofile.run. Remediation is available by upgrading affected packages to version 0.0.30.
GHSA-49gj-c84q-6qm9 at a Glance
How to Fix GHSA-49gj-c84q-6qm9
To remediate this vulnerability, upgrade all affected Picklescan 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 picklescan>=0.0.30
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show picklescan
How to Check if You Are Affected
To determine whether your Python environment is affected by GHSA-49gj-c84q-6qm9, inspect your installed packages using pip:
pip show picklescan
Analyze the terminal output to locate any version of Picklescan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.30), your application is affected.
Note: The pip show picklescan command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Picklescan, 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
GHSA-49gj-c84q-6qm9 Affected Picklescan Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
picklescan
|
PyPI |
< 0.0.30
|
0.0.30
|
References
Frequently Asked Questions
What is GHSA-49gj-c84q-6qm9?
Which Picklescan versions are affected?
What version fixes GHSA-49gj-c84q-6qm9?
Is picklescan affected?
What CWE is associated with GHSA-49gj-c84q-6qm9?
How can I check PyPI dependencies for GHSA-49gj-c84q-6qm9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-49gj-c84q-6qm9",
"modified" : "2025-08-26T21:39:39Z",
"published" : "2025-08-26T21:39:39Z",
"aliases" : [ ],
"summary" : "Picklescan is missing detection when calling built-in python cProfile.run",
"details" : "### Summary\n\nUsing cProfile.run function, which is a built-in python library function to execute remote pickle file.\n\n### Details\n\nThe attack payload executes in the following steps:\n\nFirst, the attacker craft the payload by calling to cProfile.run function in reduce method\nThen when the victim after checking whether the pickle file is safe by using Picklescan library and this library doesn't dectect any dangerous functions, decide to pickle.load() this malicious pickle file, thus lead to remote code execution.\n\n### PoC\n\n```\nimport cProfile\n\nclass EvilCProfileRun:\n def __reduce__(self):\n # cProfile.run(statement) -> Profile().run(statement) -> exec(statement)\n return cProfile.run, (\"__import__('os').system('whoami')\",)\n```\n\n### Impact\n\nWho is impacted? Any organization or individual relying on picklescan to detect malicious pickle files inside PyTorch models.\nWhat is the impact? Attackers can embed malicious code in pickle file that remains undetected but executes when the pickle file is loaded.\nSupply Chain Attack: Attackers can distribute infected pickle files across ML models, APIs, or saved Python objects.\n\n### Corresponding\n\nhttps://github.com/FredericDT\nhttps://github.com/Qhaoduoyu",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "picklescan"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.30"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mmaitre314/picklescan/security/advisories/GHSA-49gj-c84q-6qm9"
}, {
"type" : "WEB",
"url" : "https://github.com/mmaitre314/picklescan/commit/1931c2d04eaca8d20597705ff39cab78ba364e4b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mmaitre314/picklescan"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-26T21:39:39Z",
"nvd_published_at" : null
}
}