CVE-2024-47532: RestrictedPython information leakage via `AttributeError.obj` and the `string` module
Vulnerability summary
CVE-2024-47532 is a high (CVSS 8.7) vulnerability in zope restrictedpython. EPSS estimates a 0.72% chance of exploitation in the next 30 days, higher than 53.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 30-09-2024PublishedVulnerability first disclosed.
- 30-09-2024Last modifiedVulnerability information updated.
Description
RestrictedPython is a restricted execution environment for Python to run untrusted code. A user can gain access to protected (and potentially sensible) information indirectly via AttributeError.obj and the string module. The problem will be fixed in version 7.3. As a workaround, If the application does not require access to the module string, it can remove it from RestrictedPython.Utilities.utility_builtins or otherwise do not make it available in the restricted execution environment.
CVSS metrics
7 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.72%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.72% 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
1 foundRestrictedpython
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- restrictedpythonAll versions (No fix recorded) | < 8.0-1
PyPI1 product
- restrictedpython< d701cc36cccac36b21fa200f1f2d1945a9a215e6 | < 7.3
Ubuntu1 product
- restrictedpython< 4.0~b3-2ubuntu0.1~esm1 | < 4.0~b3-3ubuntu0.1~esm1 | < 6.2-1ubuntu0.24.04.1~esm1
Zope1 product
- restrictedpython< 7.3
Zopefoundation1 product
- restrictedpython< 7.3
5 vendors · 5 products
References
9 links- github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-5rfv-66g4-jr8hX Refsource CONFIRMWEBEVIDENCEREPORTExploitMitigationVendor Advisory
- github.com/zopefoundation/RestrictedPython/commit/d701cc36cccac36b21fa200f1f2d1945a9a215e6X Refsource MISCWEBFIXREPORTPatch