CVE-2026-76825

published 16 Sep 2026 · updated 16 Sep 2026

RestrictedPython: Sandbox escape via string.Formatter field resolution

8.4HighCVSS 8.4EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
zopefoundation<8.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-76825 severity on Zeptric[![CVE-2026-76825](https://zeptric.io/badge/cve/CVE-2026-76825.svg)](https://zeptric.io/cve/CVE-2026-76825)