Skip to main content

CVE-2026-76825: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in zopefoundation RestrictedPython

0
High
Published: 09/16/2026 (09/16/2026, 14:09:28 UTC)
Source: CVE Database V5
Vendor/Project: zopefoundation
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

Affected software

zopefoundation

RestrictedPython

Affected versions
<8.4
restrictedpython
pkg:pypi/restrictedpython
Affected versions
<8.4

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

AILast updated: 09/16/2026, 14:46:40 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses