CVE-2024-47532
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.
Severity
MEDIUM
CVSS v3
6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N · source nvd
CVSS v4
8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N · source cna
Exploit chance (EPSS)
0.716%
chance of exploitation in the next 30 days
higher than 54.4% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2024-09-30 |
Timeline
- 2024-09-30Published by the CNA15:29 UTC
- 2024-09-30GitHub advisory published (GHSA-5rfv-66g4-jr8h)same day
- 2024-09-30CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-5rfv-66g4-jr8h, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI restrictedpython | before 7.3 | 7.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| zope restrictedpython | before 7.3fixed in 7.3 | 7.3 |
References
- https://github.com/zopefoundation/RestrictedPython/commit/d701cc36cccac36b21fa200f1f2d1945a9a215e6
- https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-5rfv-66g4-jr8h
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-47532'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-47532'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-47532'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-47532'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).