Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
RestrictedPython versions before 8.4 are vulnerable to a sandbox escape when a policy exposes the standard library string module or string.Formatter to restricted code. An attacker running untrusted code can use Formatter field resolution to traverse attributes and obtain live object references, potentially reaching globals, builtins, or code execution. Upgrade to version 8.4. Until then, do not expose string or string.Formatter to restricted code.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.4 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0062, the 50th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:09 UTC First seen by agentprime
- 31 Oct 2026, 14:09 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-hp3v-5vw7-fx9w
- OSV: GHSA-hp3v-5vw7-fx9w
- github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-hp3v-5vw7-fx9w
- nvd.nist.gov/vuln/detail/CVE-2026-76825
- github.com/zopefoundation/RestrictedPython/commit/3b47440070b91f8807c2b2998aca99e94783639a
- github.com/zopefoundation/RestrictedPython
- github.com/zopefoundation/RestrictedPython/releases/tag/8.4