CVE-2026-76825
8.4 HIGHpublic exploit availablePublished 2026-09-16 · Updated 2026-09-16
AI risk analysis
- Summary
- The flaw allows restricted code to escape the sandbox by accessing standard library functions and classes, leading to potential RCE, data leakage, and integrity issues.
- Exploitability
- Exploitation requires custom import policy or globals exposing the string module or Formatter class, making it moderately difficult.
- Blast radius
- If exploited, it could impact confidentiality, integrity, and availability in the host environment, affecting the entire system.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to version 8.4 or later.
Analysis generated locally by qwen2.5:7b-instruct (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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 vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
Weaknesses
CWE-200, CWE-470, CWE-680, CWE-693
Public exploit & PoC references
References
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.