{"id":"CVE-2025-22153","aliases":["GHSA-gmj9-h825-chq2","PYSEC-2026-1874"],"url":"https://o3.security/vulnerability/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.","published":"2025-01-23T17:34:27.056Z","modified":"2026-08-08T03:47:52.268437773Z","cvss":{"score":7.9,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"restrictedpython","fixedVersion":"8.0"}],"fix":{"url":"https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f","label":"zopefoundation/RestrictedPython@48a92c5"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22153.json"},{"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"},{"type":"FIX","url":"https://github.com/zopefoundation/RestrictedPython/commit/48a92c5bb617a647cffd0dadd4d5cfe626bcdb2f"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:47:52.268437773Z"}}