CVE-2025-22153High· 7.9▾ Twilighttry/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 43.5 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 8.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.4%
0.4% → 0.4%
Via a type confusion bug in the CPython interpreter when using try/except* RestrictedPython could be bypassed.
We believe this should be fixed upstream in Python itself until that we remove support for try/except* from RestrictedPython.
(It has been fixed for some Python versions.)
Patched in version 8.0 by removing support for try/except* clauses
There is no workaround.
none
restrictedpython >= 6.0, < 8.0Upgrade to a patched release:
restrictedpython 8.0Connected by shared product, vendor, weakness, or advisory.
CVE-2026-76825High· 8.4RestrictedPython is a tool that helps define a subset of the Python language for accepting program input in a trusted environment
CVE-2023-37271High· 8.4RestrictedPython vulnerable to arbitrary code execution via stack frame sandbox escape
CVE-2026-55830High· 8.3RestrictedPython guard hooks can be shadowed via positional-only arguments