{"answers":{"affected":"2 open source packages ship an affected version, including picklescan.","exploited":"There is no known exploitation of GHSA-vqmv-47xg-9wpr in the wild and no public exploit code.","fix":"Upgrade picklescan to 0.0.33 or later.","what":"GHSA-vqmv-47xg-9wpr is an unsafe deserialization vulnerability in picklescan, published on 29 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-vqmv-47xg-9wpr and fix it if it is affected.\n\nWhat it is: GHSA-vqmv-47xg-9wpr is an unsafe deserialization vulnerability in picklescan, published on 29 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-vqmv-47xg-9wpr in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- picklescan (PyPI): affected all versions; fixed in 0.0.33\n- picklescan (PyPI): affected all versions; fixed in 0.0.33\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-vqmv-47xg-9wpr/ (Markdown: https://insights.sbomify.com/GHSA-vqmv-47xg-9wpr/index.md)","id":"GHSA-vqmv-47xg-9wpr","markdown":"https://insights.sbomify.com/GHSA-vqmv-47xg-9wpr/index.md","name":"GHSA-vqmv-47xg-9wpr","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python security scanner","requires_auth":"none","summary":"Picklescan fails to detect malicious pickle files using pty.spawn, allowing attackers to execute arbitrary code when victims load infected models.","user_interaction":"required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\nUsing pty.spawn, which is a built-in python library function to execute arbitrary commands on the host system.\n\n### Details\nThe attack payload executes in the following steps:\nFirst, the attacker craft the payload by calling to `pty.spawn` function in the `__reduce__` method. Then the victim attempts to use picklescan to scan the pickle file for issues and sees this -\n```\n----------- SCAN SUMMARY -----------\nScanned files: 1\nInfected files: 0\nDangerous globals: 0\n```\nThe victim proceeds to load the pickle file and execute attacker-injected arbitrary code.\n\n### PoC\n```\nclass PtyExploit:\n  def __reduce__(self):\n    return (pty.spawn, ([\"/bin/sh\", \"-c\", \"id; exit\"],))\n```\n\n### Impact\n**Who is impacted?** Any organization or individual relying on picklescan to detect malicious pickle files inside PyTorch models.\n**What is the impact?** Attackers can embed malicious code in pickle file that remains undetected but executes when the pickle file is loaded.\n**Supply Chain Attack**: Attackers can distribute infected pickle files across ML models, APIs, or saved Python objects.\n\n### Collaborators\nhttps://github.com/ajohnston9\nhttps://github.com/geo-lit","ecosystems":["PyPI"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Picklescan missing detection when calling pty.spawn","id":"GHSA-vqmv-47xg-9wpr","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"deserialization","year":"2025"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"PyPI","fixed":["0.0.33"],"introduced":["0"],"last_affected":[],"package":"picklescan","purl":null,"source":"GHSA-vqmv-47xg-9wpr"},{"ecosystem":"PyPI","fixed":["0.0.33"],"introduced":["0"],"last_affected":[],"package":"picklescan","purl":"pkg:pypi/picklescan","source":"GHSA-vqmv-47xg-9wpr"}],"products":null,"published":"2025-12-29","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Picklescan fails to detect malicious pickle files using pty.spawn, allowing attackers to execute arbitrary code when victims load infected models.","url":"https://insights.sbomify.com/GHSA-vqmv-47xg-9wpr/"}