CVE-2024-47532: RestrictedPython is a restricted execution environment for Python to run untrusted code
CVE-2024-47532 is a medium-severity flaw (CVSS 6.5) affecting restrictedpython. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 i
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.7% (top 46%) |
| CISA exploited list | No |
| Weakness | CWE-200 |
| Published | 2024-09-30 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-47532?
restrictedpython: upgrade to 7.3. Exact commands for each OS are on this page.
Is CVE-2024-47532 being exploited?
CVE-2024-47532 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-47532 affect?
CVE-2024-47532 affects restrictedpython. Severity is medium (CVSS 6.5). 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
How urgent is CVE-2024-47532?
Priority 41/100. Public exploit reference
Software pages
Related CVEs
- CVE-2023-41039 HIGH 8.3 UPGRADE RestrictedPython is a restricted execution environment for Python to run untrusted code