CVE-2026-76825: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in zopefoundation RestrictedPython
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.
AI Analysis
Technical Summary
RestrictedPython prior to version 8.4 contains a vulnerability where restricted code can escape the sandbox if a custom import policy or globals expose the standard library string module, the string.Formatter class, a Formatter instance, or a Formatter subclass. The Formatter methods format, get_field, get_value, and vformat perform attribute and item traversal internally without passing through RestrictedPython's safer_getattr protections. This allows restricted code to leverage live object references to access function globals, builtins, file access, or code execution primitives, thereby impacting confidentiality, integrity, and availability. The vulnerability is addressed in version 8.4.
Potential Impact
Exploitation of this vulnerability allows restricted code to bypass sandbox restrictions and gain unauthorized access to sensitive information and execution capabilities within the host environment. This can lead to full compromise of confidentiality, integrity, and availability of the affected system running RestrictedPython versions prior to 8.4.
Mitigation Recommendations
Upgrade to RestrictedPython version 8.4 or later, where this vulnerability is fixed. No other mitigation is indicated or required by the vendor advisory.
CVE-2026-76825: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in zopefoundation RestrictedPython
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 v3.1
Score 8.4high
Affected software
zopefoundation
RestrictedPython
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
RestrictedPython prior to version 8.4 contains a vulnerability where restricted code can escape the sandbox if a custom import policy or globals expose the standard library string module, the string.Formatter class, a Formatter instance, or a Formatter subclass. The Formatter methods format, get_field, get_value, and vformat perform attribute and item traversal internally without passing through RestrictedPython's safer_getattr protections. This allows restricted code to leverage live object references to access function globals, builtins, file access, or code execution primitives, thereby impacting confidentiality, integrity, and availability. The vulnerability is addressed in version 8.4.
Potential Impact
Exploitation of this vulnerability allows restricted code to bypass sandbox restrictions and gain unauthorized access to sensitive information and execution capabilities within the host environment. This can lead to full compromise of confidentiality, integrity, and availability of the affected system running RestrictedPython versions prior to 8.4.
Mitigation Recommendations
Upgrade to RestrictedPython version 8.4 or later, where this vulnerability is fixed. No other mitigation is indicated or required by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-19T19:52:28.214Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aaaa87255bf5e2cf5bb988b
Added to database: 09/16/2026, 14:32:18 UTC
Last enriched: 09/16/2026, 14:46:40 UTC
Last updated: 09/17/2026, 01:15:49 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.