CVE-2026-76825

Source
https://cve.org/CVERecord?id=CVE-2026-76825
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76825.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-76825
Aliases
Downstream
Published
2026-09-16T14:09:28Z
Modified
2026-09-18T03:48:30Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
RestrictedPython: Sandbox escape via string.Formatter field resolution
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-200",
        "CWE-470",
        "CWE-680",
        "CWE-693"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76825.json"
}
References

Affected packages

Git / github.com/zopefoundation/restrictedpython

Affected ranges

Type
GIT
Repo
https://github.com/zopefoundation/restrictedpython
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "8.4"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Affected versions

4.*
4.0
4.0a1
4.0a2
4.0a3
4.0b1
4.0b2
4.0b3
4.0b4
4.0b5
4.0b6
4.0b7
4.0b8
5.*
5.0
5.1
5.2
5.2a1.dev0
5.3a1.dev0
6.*
6.0
6.0a1.dev0
7.*
7.0
7.0a1.dev0
7.0a1.dev1
7.0a2.dev0
7.1
7.2
7.2a1.dev0
7.3
7.4
8.*
8.0
8.1
8.1a1.dev0
8.2
8.3
8.3a1.dev0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76825.json"