{"id":"CVE-2025-22153","summary":"try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter","details":"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. Via a type confusion bug in versions of the CPython interpreter starting in 3.11 and prior to 3.13.2 when using `try/except*`, RestrictedPython starting in version 6.0 and prior to version 8.0 could be bypassed. The issue is patched in version 8.0 of RestrictedPython by removing support for `try/except*` clauses. No known workarounds are available.","aliases":["GHSA-gmj9-h825-chq2"],"modified":"2026-03-14T12:41:59.528613Z","published":"2025-01-23T17:34:27.056Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-843"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22153.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22153.json"},{"type":"FIX","url":"https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f"},{"type":"ADVISORY","url":"https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-gmj9-h825-chq2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22153"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/zopefoundation/restrictedpython","events":[{"introduced":"725665ae49d604f05bce91555965569456fb2cf5"},{"fixed":"67d6d95794f5196295ad1f9af8811f938fc9fdc2"}]}],"versions":["6.0","7.0","7.0a1.dev0","7.0a1.dev1","7.0a2.dev0","7.1","7.2","7.2a1.dev0","7.3","7.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22153.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L"}]}