CVE-2024-47532
published 2024-09-30CVE-2024-47532: RestrictedPython is a restricted execution environment for Python to run untrusted code. A user can gain access to protected (and potentially sensible)…
PriorityP336medium6.5CVSS 3.1
AVNACLPRLUINSUCHINAN
EPSS
0.73%
49.5th percentile
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
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | restrictedpython | < restrictedpython 8.0-1 (forky) | restrictedpython 8.0-1 (forky) |
| zope | restrictedpython | < 7.3 | 7.3 |
| zopefoundation | restrictedpython | < 7.3 | 7.3 |
| zopefoundation | restrictedpython | >= 0 < 8.0-1 | 8.0-1 |
| zopefoundation | restrictedpython | >= 0 < 8.0-1 | 8.0-1 |
| zopefoundation | restrictedpython | >= 0 < 7.3 | 7.3 |
| zopefoundation | restrictedpython | >= 0 < 4.0~b3-2ubuntu0.1~esm1 | 4.0~b3-2ubuntu0.1~esm1 |
| zopefoundation | restrictedpython | >= 0 < 4.0~b3-3ubuntu0.1~esm1 | 4.0~b3-3ubuntu0.1~esm1 |
| zopefoundation | restrictedpython | >= 0 < 6.2-1ubuntu0.24.04.1~esm1 | 6.2-1ubuntu0.24.04.1~esm1 |
CVSS provenance
nvdv3.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
nvdv4.08.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
osv9.9CRITICAL
vendor_debian8.7HIGH
vendor_ubuntu8.4HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
restrictedpython vulnerabilities
osv·2025-03-18·CVSS 9.9
CVE-2023-37271 [CRITICAL] restrictedpython vulnerabilities
restrictedpython vulnerabilities
Nakul Choudhary and Robert Xiao discovered that RestrictedPython did not
properly sanitize certain inputs. An attacker could possibly use this
issue to execute arbitrary code. This issue only affected
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2023-37271)
Abhishek Govindarasu, Ankush Menat and Ward Theunisse discovered that
RestrictedPython did not correctly handle certain format strings. An
attacker could possibly use this issue to leak sensitive information.
This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.
(CVE-2023-41039)
It was discovered that RestrictedPython did not correctly restrict access
to certain fields. An attacker could possibly use this issue to leak
sensitive information. (CVE-2024-47532)
It was discovered that Restricted
OSV
RestrictedPython information leakage via `AttributeError.obj` and the `string` module
osv·2024-09-30
CVE-2024-47532 [HIGH] RestrictedPython information leakage via `AttributeError.obj` and the `string` module
RestrictedPython information leakage via `AttributeError.obj` and the `string` module
### Impact
A user can gain access to protected (and potentially sensible) information indirectly via `AttributeError.obj` and the `string` module.
### Patches
The problem will be fixed in version 7.3.
### Workarounds
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.
OSV
CVE-2024-47532: RestrictedPython is a restricted execution environment for Python to run untrusted code
osv·2024-09-30·CVSS 8.7
CVE-2024-47532 [HIGH] CVE-2024-47532: RestrictedPython is a restricted execution environment for Python to run untrusted code
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.
GHSA
RestrictedPython information leakage via `AttributeError.obj` and the `string` module
ghsa·2024-09-30
CVE-2024-47532 [HIGH] CWE-200 RestrictedPython information leakage via `AttributeError.obj` and the `string` module
RestrictedPython information leakage via `AttributeError.obj` and the `string` module
### Impact
A user can gain access to protected (and potentially sensible) information indirectly via `AttributeError.obj` and the `string` module.
### Patches
The problem will be fixed in version 7.3.
### Workarounds
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.
Ubuntu
RestrictedPython vulnerabilities
vendor_ubuntu·2025-03-18·CVSS 8.4
CVE-2023-37271 [HIGH] RestrictedPython vulnerabilities
Title: RestrictedPython vulnerabilities
Summary: Several security issues were fixed in RestrictedPython.
Nakul Choudhary and Robert Xiao discovered that RestrictedPython did not
properly sanitize certain inputs. An attacker could possibly use this
issue to execute arbitrary code. This issue only affected
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2023-37271)
Abhishek Govindarasu, Ankush Menat and Ward Theunisse discovered that
RestrictedPython did not correctly handle certain format strings. An
attacker could possibly use this issue to leak sensitive information.
This issue only affected Ubuntu 20.04 LTS and Ubuntu 22.04 LTS.
(CVE-2023-41039)
It was discovered that RestrictedPython did not correctly restrict access
to certain fields. An attacker could possibly use this issue to leak
s
Debian
CVE-2024-47532: restrictedpython - RestrictedPython is a restricted execution environment for Python to run untrust...
vendor_debian·2024·CVSS 8.7
CVE-2024-47532 [HIGH] CVE-2024-47532: restrictedpython - RestrictedPython is a restricted execution environment for Python to run untrust...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 8.0-1)
sid: resolved (fixed in 8.0-1)
trixie: resolved (fixed in 8.0-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-09-30
Published