
CVE catalog
CVE-2026-76825
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 cu
- Severity
- High · CVSS 8.4
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.62% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | restrictedpython | sid | 8.4-1 | fixed |
| Debian | restrictedpython | forky | 8.4-1 | fixed |
| Debian | restrictedpython | trixie | 8.0-1 | vulnerable |
| Debian | restrictedpython | bookworm | 4.0~b3-3 | vulnerable |
| Pip | RestrictedPython | Not reported | 8.4 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | restrictedpython | source | sid | 8.4-1 | not yet assigned | Not reported | Not reported |
| Debian | restrictedpython | source | forky | 8.4-1 | not yet assigned | Not reported | Not reported |
| Debian | restrictedpython | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | restrictedpython | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Pip | RestrictedPython | pip | Not reported | 8.4 | Not reported | GHSA-HP3V-5VW7-FX9W | Not reported |
Notes
[trixie] restrictedpython: Minor issue [bookworm] restrictedpython: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-restrictedpython]Affected
Source package: [restrictedpython]
Details (2)
4.0~b3-3· all · bookwormAffected
nvd · restrictedpython · debian · bookworm; nvd · restrictedpython · debian · 12
4.0~b3-3· all · bookwormAffected
nvd · restrictedpython · debian · bookworm; nvd · restrictedpython · debian · 12
[Debian 13 (Trixie)]
- [python3-restrictedpython]Affected
Source package: [restrictedpython]
Details (2)
8.0-1· all · trixieAffected
nvd · restrictedpython · debian · 13
8.0-1· all · trixieAffected
nvd · restrictedpython · debian · 13
Observed:
References
- [https://github.com/advisories/GHSA-hp3v-5vw7-fx9w]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-76825]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-76825]
- [https://security-tracker.debian.org/tracker/CVE-2026-76825]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]