Vulnerability · Published Sep 30, 2024 · Assigned by GitHub_M
CVE-2024-47532RestrictedPython information leakage via `AttributeError.obj` and the `string` module
High 8.7
In plain English
A high-severity information exposure in RestrictedPython from zopefoundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | restrictedpython | no fix listed | DEBIAN-CVE-2024-47532 |
| Debian:13 | restrictedpython | 8.0-1 | DEBIAN-CVE-2024-47532 |
| Debian:14 | restrictedpython | 8.0-1 | DEBIAN-CVE-2024-47532 |
| PyPI | restrictedpython | 7.3 | GHSA-5rfv-66g4-jr8h |
| PyPI | restrictedpython | 7.3 | PYSEC-2024-186 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| zopefoundation | RestrictedPython | < 7.3 |
Weakness: CWE-200 · Vector: 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