{"answers":{"affected":"3 open source packages ship an affected version, including restrictedpython and RestrictedPython.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55830 exists.","fix":"Upgrade restrictedpython to 8.3 or later.","what":"CVE-2026-55830 is a high-severity vulnerability in zopefoundation RestrictedPython, published on 8 Jul 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-55830 and fix it if it is affected.\n\nWhat it is: CVE-2026-55830 is a high-severity vulnerability in zopefoundation RestrictedPython, published on 8 Jul 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-55830 exists.\n\nAffected packages and fixed versions:\n- restrictedpython (PyPI): affected all versions; fixed in 8.3\n- restrictedpython (PyPI): affected all versions; fixed in 8.3\n- RestrictedPython (PyPI): affected all versions; fixed in 8.3\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/CVE-2026-55830/ (Markdown: https://insights.sbomify.com/CVE-2026-55830/index.md)","id":"CVE-2026-55830","markdown":"https://insights.sbomify.com/CVE-2026-55830/index.md","name":"CVE-2026-55830","record":{"aliases":["CLEANSTART-2026-OY92874","DEBIAN-CVE-2026-55830","ECHO-e362-8d35-27d4","GHSA-ffg3-p8fm-mjx2","MINI-2p37-hfgr-f523","MINI-43g3-7gv6-v29r","MINI-89fv-v96r-qq6c","MINI-gq4h-fhcq-2m28","MINI-jjvq-7m2j-2w26","MINI-rpwc-9p5c-hh66","MINI-wx4r-4cv8-83qm","PYSEC-2026-3917","UBUNTU-CVE-2026-55830"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python sandboxing library","requires_auth":"high_privilege","summary":"Attackers can bypass RestrictedPython access policies by shadowing guard hooks using positional-only arguments, potentially escaping the sandbox.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"description":"RestrictedPython is a tool that helps to define a subset of the Python language which allows to provide a program input into a trusted environment. Prior to 8.3, check_function_argument_names() rejected protected guard hook names for regular, variadic, and keyword-only arguments but omitted positional-only arguments, allowing __getattr__, _getitem_, _write_, or _print_ to be shadowed by a local parameter and bypass the embedding application's access policy. This issue is fixed in version 8.3.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"RestrictedPython guard hooks can be shadowed via positional-only arguments","id":"CVE-2026-55830","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Netty SPDY SETTINGS frame count materializes unbounded settings map","id":"CVE-2026-55831"},"packages":[{"ecosystem":"PyPI","fixed":["8.3"],"introduced":["0"],"last_affected":[],"package":"RestrictedPython","purl":null,"source":"GHSA-ffg3-p8fm-mjx2"},{"ecosystem":"PyPI","fixed":["8.3"],"introduced":["0"],"last_affected":[],"package":"restrictedpython","purl":"pkg:pypi/restrictedpython","source":"GHSA-ffg3-p8fm-mjx2"},{"ecosystem":"PyPI","fixed":["8.3"],"introduced":["0"],"last_affected":[],"package":"restrictedpython","purl":"pkg:pypi/restrictedpython","source":"PYSEC-2026-3917"}],"prev":{"headline":"qbee transport: Symlink-chain path traversal in tar extraction (one level outside destination)","id":"CVE-2026-55828"},"products":["RestrictedPython"],"published":"2026-07-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["zopefoundation"]},"summary":"Attackers can bypass RestrictedPython access policies by shadowing guard hooks using positional-only arguments, potentially escaping the sandbox.","url":"https://insights.sbomify.com/CVE-2026-55830/"}