{"id":"CVE-2024-47532","published":"2024-09-30T15:29:57Z","modified":"2024-09-30T17:29:29Z","title":"RestrictedPython information leakage via `AttributeError.obj` and the `string` module","vendor":"zopefoundation","product":"RestrictedPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00716,"percentile":0.54691,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-5rfv-66g4-jr8h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/zopefoundation/RestrictedPython/commit/d701cc36cccac36b21fa200f1f2d1945a9a215e6","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":10.94},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"zopefoundation","affectedVersions":[{"vendor":"zopefoundation","product":"RestrictedPython","versions":["< 7.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-30T17:26:28.910403Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"RestrictedPython","vulnerableRanges":["<7.3"],"patched":["7.3"],"from":["GHSA-5rfv-66g4-jr8h","PYSEC-2024-186"],"provenance":"source"}],"summary":{"text":"The RestrictedPython library, a restricted execution environment for running untrusted Python code, contains an information leakage flaw that exposes protected data through AttributeError.obj and the string module. An attacker who can get code executed in the restricted environment, without authentication, user interaction, or special configuration, can indirectly read sensitive information the sandbox is meant to hide.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:45:35Z"},"euvd":{"id":"EUVD-2024-0156","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-zopefoundation-restrictedpython-cve-2023-37271","parents":[{"from":"CVE-2023-41039","to":"CVE-2024-47532","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/RestrictedPython/Utilities.py"],"commits":["https://github.com/zopefoundation/RestrictedPython/commit/4134aedcff17c977da7717693ed89ce56d54c120","https://github.com/zopefoundation/RestrictedPython/commit/d701cc36cccac36b21fa200f1f2d1945a9a215e6"],"basis":"rarely changed file"}]}]}}