{"id":"CVE-2026-55830","published":"2026-07-08T21:16:36Z","modified":"2026-07-09T13:46:21Z","title":"RestrictedPython guard hooks can be shadowed via positional-only arguments","vendor":"zopefoundation","product":"RestrictedPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00287,"percentile":0.21682,"provenance":"source"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-ffg3-p8fm-mjx2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zopefoundation/RestrictedPython/commit/3737596ec9f28c34a073cc845bd2f4c0a80cb671","tags":["x_refsource_MISC"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":4.34},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"zopefoundation","affectedVersions":[{"vendor":"zopefoundation","product":"RestrictedPython","versions":["< 8.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-09T13:46:05.231227Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"RestrictedPython","vulnerableRanges":["<8.3"],"patched":["8.3"],"from":["GHSA-ffg3-p8fm-mjx2","PYSEC-2026-3917"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-42434","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-zopefoundation-restrictedpython-cve-2023-37271","parents":[{"from":"CVE-2025-22153","to":"CVE-2026-55830","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:RestrictedPython","fromFixed":"8.0","toFixed":"8.3","daysApart":531},{"kind":"same-code","provenance":"machine","files":["src/RestrictedPython/transformer.py"],"commits":["https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f","https://github.com/zopefoundation/RestrictedPython/commit/3737596ec9f28c34a073cc845bd2f4c0a80cb671"],"basis":"rarely changed file"}]},{"from":"CVE-2023-37271","to":"CVE-2026-55830","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/RestrictedPython/transformer.py"],"commits":["https://github.com/zopefoundation/RestrictedPython/commit/c8eca66ae49081f0016d2e1f094c3d72095ef531","https://github.com/zopefoundation/RestrictedPython/commit/3737596ec9f28c34a073cc845bd2f4c0a80cb671"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2023-41039","published":"2023-08-30","fixed":"6.2","kev":false},{"cve":"CVE-2024-47532","published":"2024-09-30","fixed":"7.3","kev":false},{"cve":"CVE-2025-22153","published":"2025-01-23","fixed":"8.0","kev":false},{"cve":"CVE-2026-55830","published":"2026-07-08","fixed":"8.3","kev":false},{"cve":"CVE-2026-76825","published":"2026-09-16","fixed":"8.4","kev":false,"link":{"from":"CVE-2026-55830","to":"CVE-2026-76825","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:RestrictedPython","fromFixed":"8.3","toFixed":"8.4","daysApart":70}]}}],"package":"PyPI:RestrictedPython"}}