CVE-2024-47532
published high CVSS 4.0 · 8.7RestrictedPython information leakage via `AttributeError.obj` and the `string` module
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| zopefoundation | — | RestrictedPython< 7.3 | Affected | Not stated | GitHub_M |
| zope | — | restrictedpython0 to < 7.3 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Ubuntu | focal | restrictedpython | Advisory build | 4.0~b3-2ubuntu0.1~esm1 | USN-7355-1 |
| Ubuntu | jammy | restrictedpython | Advisory build | 4.0~b3-3ubuntu0.1~esm1 | USN-7355-1 |
| Ubuntu | noble | restrictedpython | Advisory build | 6.2-1ubuntu0.24.04.1~esm1 | USN-7355-1 |
| Ubuntu | focal | python3-restrictedpython | Advisory build | 4.0~b3-2ubuntu0.1~esm1 | USN-7355-1 |
| Ubuntu | jammy | python3-restrictedpython | Advisory build | 4.0~b3-3ubuntu0.1~esm1 | USN-7355-1 |
| Ubuntu | noble | python3-restrictedpython | Advisory build | 6.2-1ubuntu0.24.04.1~esm1 | USN-7355-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zopefoundation | RestrictedPython | < 7.3 (affected) | GitHub_M · cna |
| zope | restrictedpython | 0 to < 7.3 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
References
2Provider assertions
2GitHub_M · cna
RestrictedPython information leakage via `AttributeError.obj` and the `string` module
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1c6e143d83acc659a8a4bebaa3eb5347848ebfca3cb07446d555f3e07004acd4
- Ingested
- 23 Sep 2026, 08:28:19 UTC
- Source record
- Official CVE record