CVE-2025-22153zopefoundation RestrictedPython
High 7.9
Follow: this CVE · zopefoundation · zopefoundation RestrictedPython We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.9
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 47
- Auth required
- Yes
- Published
- Jan 23, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-843
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L
What happens
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.
What to do
- Apply the vendor's security update for RestrictedPython.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | restrictedpython |
≥ 6.0 < 8.0 |
8.0 |
pip install "restrictedpython>=8.0" |
| PyPI | restrictedpython |
≥ 6.0 < 8.0 |
8.0 |
pip install "restrictedpython>=8.0" |
Per OSV / GitHub Advisories (GHSA-gmj9-h825-chq2, PYSEC-2026-1874). Check the version in your lockfile before upgrading.
Affected products
- zopefoundation · RestrictedPython
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.