CVE-2025-22153
CVE-2025-22153 · try/except* clauses could allow bypass RestrictedPython via type confusion bug in the CPython interpreter
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.9 · High · EPSS 0.4% · Fix available
- Published
- Updated
Affected products and versions
restrictedpython
- Versions
- >= 6.0, < 8.0: Affected
No fix published
restrictedpython Debian:13
- Affected ranges
- ECOSYSTEM: < 8.0-1
Update to 8.0-1
restrictedpython Debian:14
- Affected ranges
- ECOSYSTEM: < 8.0-1
Update to 8.0-1
restrictedpython PyPI
- Versions
- 6.0
- 6.1
- 6.2
- 7.0
- 7.0a1.dev0
- 7.0a1.dev1
- 7.0a2.dev0
- 7.1
- 7.2
- 7.2a1.dev0
- 7.3
- 7.4
- Affected ranges
- ECOSYSTEM: ≥ 6.0, < 8.0
Update to 8.0
restrictedpython Ubuntu:Pro:24.04:LTS
- Versions
- 4.0~b3-3
- 6.2-1
- Affected ranges
- ECOSYSTEM: < 6.2-1ubuntu0.24.04.1~esm1
Update to 6.2-1ubuntu0.24.04.1~esm1