{"id":"CVE-2024-47532","aliases":["CVE-2024-47532","GHSA-5rfv-66g4-jr8h","PYSEC-2024-186"],"related":[],"kind":"vulnerability","state":"published","title":"RestrictedPython information leakage via `AttributeError.obj` and the `string` module","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nA user can gain access to protected (and potentially sensible) information indirectly via `AttributeError.obj` and the `string` module.\n\n### Patches\nThe problem will be fixed in version 7.3.\n\n\n### Workarounds\nIf 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"RestrictedPython es un entorno de ejecución restringido para que Python ejecute código no confiable. Un usuario puede obtener acceso a información protegida (y potencialmente sensible) indirectamente a través de AttributeError.obj y el módulo de cadena. El problema se solucionará en la versión 7.3. Como workaround, si la aplicación no requiere acceso a la cadena del módulo, puede eliminarla de RestrictedPython.Utilities.utility_builtins o, de lo contrario, no ponerla a disposición en el entorno de ejecución restringido.","source":"nvd"}],"published":"2024-09-30T15:29:57.907Z","modified":"2026-06-17T07:57:15.220Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"< 7.3","status":"affected"}],"vendor":"zopefoundation","product":"RestrictedPython","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"7.3","status":"affected"}],"vendor":"zope","product":"restrictedpython","cpe":"cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.3"}],"ecosystem":"PyPI","package":"restrictedpython","purl":"pkg:pypi/restrictedpython","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"7.3"}],"vendor":"zope","product":"restrictedpython","cpe":"cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"d701cc36cccac36b21fa200f1f2d1945a9a215e6"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.3"}],"ecosystem":"PyPI","package":"restrictedpython","purl":"pkg:pypi/restrictedpython","repo":"https://github.com/zopefoundation/restrictedpython","source":"pysec"}],"references":[{"url":"https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-5rfv-66g4-jr8h","tags":["evidence","exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/zopefoundation/RestrictedPython/commit/d701cc36cccac36b21fa200f1f2d1945a9a215e6","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47532","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/restrictedpython/PYSEC-2024-186.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zopefoundation/RestrictedPython","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-09-30T17:26:28.910Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-47532","url":"https://www.cve.org/CVERecord?id=CVE-2024-47532","licence":"CVE Terms of Use","modified":"2024-09-30T17:29:29.522Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5rfv-66g4-jr8h","url":"https://github.com/advisories/GHSA-5rfv-66g4-jr8h","licence":"CC-BY-4.0","modified":"2025-01-21T18:21:23.819Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-47532","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47532","licence":"Public domain","modified":"2026-06-17T07:57:15.220Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-186","url":"https://osv.dev/vulnerability/PYSEC-2024-186","licence":"CC-BY-4.0","modified":"2025-01-19T04:56:54.776Z"}],"updatedAt":"2026-11-25T22:58:45.899Z","epss":{"score":0.00716,"percentile":0.55,"date":"2026-12-01T12:00:22.000Z"}}