Information Disclosure in RestrictedPython
Summary
Vulnerability in RestrictedPython (CVE-2026-76825). Successful exploitation can lead to full system takeover. Exploitable via string. Mitigation: upgrade to 8.4 or later.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A vulnerability tracked as CVE-2026-76825 has been found in RestrictedPython.
Attackers can target a specific entry point like string over the network to misuse the product.
Successful exploitation can lead to full system takeover. CVSS score: 8.4/10.
What to do: upgrade RestrictedPython to 8.4 or later.
If unsure, ask your IT team or search "RestrictedPython CVE-2026-76825" on the vendor's site.
CVE-2026-76825 (RestrictedPython) — CWE-200 / CVSS v3 8.4
Attack vector: remote (network-reachable)
Attack surface: string / string.Formatter / get_field / safer_getattr
Patched: 8.4 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Information disclosure (CWE-200) exists in RestrictedPython. Attackers reach the vulnerable code path via string.
Check the vendor advisory for the affected versions of RestrictedPython. Attack surface: string / string.Formatter / get_field / safer_getattr.
Severity: High (CVSS 8.4/10). Successful exploitation can lead to full system takeover.
Update to 8.4.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'RestrictedPython' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'RestrictedPython' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
RestrictedPythonを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade RestrictedPython to 8.4ステージング環境で 8.4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| pipRestrictedPython |
< 8.4→ 8.4 |
8.4 |
| PyPIrestrictedpython |
< 8.4→ 8.4 |
8.4 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-76825 restrictedpython Fix available
- Ubuntu UBUNTU-CVE-2026-76825 restrictedpython No fixed version in this record
Original description The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- advisory github.com
- package github.com
- package pypi.org
- patch github.com
- web github.com