Vulnerability · Published Sep 30, 2024 · Assigned by GitHub_M

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

High 8.7

In plain English

A high-severity information exposure in RestrictedPython from zopefoundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.7%top 46.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12restrictedpythonno fix listedDEBIAN-CVE-2024-47532
Debian:13restrictedpython8.0-1DEBIAN-CVE-2024-47532
Debian:14restrictedpython8.0-1DEBIAN-CVE-2024-47532
PyPIrestrictedpython7.3GHSA-5rfv-66g4-jr8h
PyPIrestrictedpython7.3PYSEC-2024-186

Affected products (as reported)

VendorProductVersions
zopefoundation RestrictedPython < 7.3

Weakness: CWE-200 · 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

References