Zopefoundation RestrictedPython
try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6.0, < 8.0
Fixed in 8.0
Mitigation
Upgrade RestrictedPython to 8.0 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 not a PoC
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Andy-you/CVE-Reproducer-System | 2 May 2026 +1.3 y | 1 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.