CVE-2026-76825: RestrictedPython: Sandbox escape via string.Formatter field resolution
Vulnerability summary
CVE-2026-76825 is a high (CVSS 8.4) vulnerability in zopefoundation restrictedpython. EPSS estimates a 0.62% chance of exploitation in the next 30 days, higher than 49.9% of scored vulnerabilities.
Not severe (CVSS 8.4, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 16-09-2026PublishedVulnerability first disclosed.
- 16-09-2026Last modifiedVulnerability information updated.
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 metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.4HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.4HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.4HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.4HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.4HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- NVDNIST8.4HighCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
EPSS trend
Probability
0.62%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.62% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-470Use of Externally-Controlled Input to Select Classes or CodeThe product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.
- CWE-680Integer Overflow to Buffer OverflowThe product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.
- CWE-693Protection Mechanism FailureThe product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.
Affected systems
Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard1 product
- open-webui< 0.11.3-r6
Debian1 product
- restrictedpythonAll versions (No fix recorded) | < 8.4-1
PyPI1 product
- restrictedpython< 8.4
Ubuntu1 product
- restrictedpythonAll versions (No fix recorded)
Wolfi1 product
- open-webui< 0.11.3-r6
Zopefoundation1 product
- restrictedpython< 8.4
6 vendors · 6 products
References
11 links- github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-hp3v-5vw7-fx9wX Refsource CONFIRMWEBAdvisory