DEBIAN-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 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.
DEBIAN-CVE-2026-76825
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-76825
restrictedpython
Source reference: /affected/0/package/name
- Affected versions
- 4.0~b3-3
Source reference:
/affected/0/versions6.2-1Source reference:
/affected/0/versions8.0-1Source reference:
/affected/0/versions8.1-1Source reference:
/affected/0/versions8.4-1Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
restrictedpython
Source reference: /affected/1/package/name
- Affected versions
- 8.0-1
Source reference:
/affected/1/versions8.1-1Source reference:
/affected/1/versions8.4-1Source reference:
/affected/1/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
restrictedpython
Source reference: /affected/2/package/name
- Affected versions
- 8.0-1
Source reference:
/affected/2/versions8.1-1Source reference:
/affected/2/versions - Fixed versions
- 8.4-1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "restrictedpython",
"purl": "pkg:deb/debian/restrictedpython?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"4.0~b3-3",
"6.2-1",
"8.0-1",
"8.1-1",
"8.4-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-76825.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "restrictedpython",
"purl": "pkg:deb/debian/restrictedpython?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"8.0-1",
"8.1-1",
"8.4-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-76825.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "8.4-1"
}
]
}
],
"package": {
"name": "restrictedpython",
"purl": "pkg:deb/debian/restrictedpython?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"8.0-1",
"8.1-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-76825.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #58480 · Revision 1
- Added to Heist Feed
- Publisher date