{"cve":"CVE-2026-76825","nvd":{"published":"2026-09-16T15:17:46.000","modified":"2026-09-16T19:17:34.720","status":"Deferred","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":8.4},"cwes":["CWE-200","CWE-470","CWE-680","CWE-693"],"references":["https://github.com/zopefoundation/RestrictedPython/commit/3b47440070b91f8807c2b2998aca99e94783639a","https://github.com/zopefoundation/RestrictedPython/releases/tag/8.4","https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-hp3v-5vw7-fx9w"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:54:41.405518556+00:00"},"epss":{"cve":"CVE-2026-76825","score":0.00624,"percentile":0.49953,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hp3v-5vw7-fx9w","url":"https://osv.dev/vulnerability/GHSA-hp3v-5vw7-fx9w","summary":"RestrictedPython vulnerable to sandbox escape via string.Formatter field resolution","modified":"2026-10-01T17:55:55.691500360Z","packages":[{"ecosystem":"PyPI","name":"restrictedpython","purl":"pkg:pypi/restrictedpython","ranges":["<8.4"],"fixed":["8.4"]}]},{"id":"PYSEC-2026-4161","url":"https://osv.dev/vulnerability/PYSEC-2026-4161","summary":"RestrictedPython vulnerable to sandbox escape via string.Formatter field resolution","modified":"2026-10-01T17:45:13.722280678Z","packages":[{"ecosystem":"PyPI","name":"restrictedpython","purl":"pkg:pypi/restrictedpython","ranges":["<8.4"],"fixed":["8.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}