CVE-2026-76825zopefoundation RestrictedPython
High 8.4
Follow: this CVE · zopefoundation · zopefoundation RestrictedPython We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 8.4
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 16, 2026
- Updated
- Sep 16, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
What happens
RestrictedPython is a tool that helps define a subset of the Python language for accepting program input in a trusted environment. Prior to 8.4, RestrictedPython could allow a sandbox escape when a custom import policy or globals exposed the standard library string module, the string.Formatter class, a Formatter instance, or a Formatter subclass to restricted code. The string.Formatter methods format, get_field, get_value, and vformat performed attribute and item traversal internally without passing through RestrictedPython's safer_getattr protections. Restricted code could use those live object references to reach function globals, builtins, file access, or code execution primitives, affecting confidentiality, integrity, and availability in the host environment. This issue is fixed in version 8.4.
What to do
- Apply the vendor's security update for RestrictedPython.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | restrictedpython |
< 8.4 |
8.4 |
pip install "restrictedpython>=8.4" |
| PyPI | restrictedpython |
< 8.4 |
8.4 |
pip install "restrictedpython>=8.4" |
Per OSV / GitHub Advisories (GHSA-hp3v-5vw7-fx9w, PYSEC-2026-4161). 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.