# CVE-2024-47532: RestrictedPython information leakage via `AttributeError.obj` and the `string` module

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-30T15:29:57.907Z
- Modified: 2026-06-17T07:57:15.220Z
- Also known as: GHSA-5rfv-66g4-jr8h, PYSEC-2024-186
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- zopefoundation RestrictedPython: < 7.3
- zope restrictedpython: before 7.3
- restrictedpython (PyPI): before 7.3; before d701cc36cccac36b21fa200f1f2d1945a9a215e6

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-5rfv-66g4-jr8h> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://github.com/zopefoundation/RestrictedPython/commit/d701cc36cccac36b21fa200f1f2d1945a9a215e6> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-47532> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/restrictedpython/PYSEC-2024-186.yaml> (web)
- <https://github.com/zopefoundation/RestrictedPython> (package)

## Sources

- CVE List: [CVE-2024-47532](https://www.cve.org/CVERecord?id=CVE-2024-47532), CVE Terms of Use, modified 2024-09-30
- GitHub Advisory Database: [GHSA-5rfv-66g4-jr8h](https://github.com/advisories/GHSA-5rfv-66g4-jr8h), CC-BY-4.0, modified 2025-01-21
- NVD: [CVE-2024-47532](https://nvd.nist.gov/vuln/detail/CVE-2024-47532), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-186](https://osv.dev/vulnerability/PYSEC-2024-186), CC-BY-4.0, modified 2025-01-19

---

Page: https://cve.day/CVE-2024-47532 · Whole record: https://cve.day/CVE-2024-47532.json · Rebuilt by cve.day 2026-11-25T22:58:45.899Z
