VDB

CVE-2024-47532

CVE-2024-47532 PUBLISHED CVSS 8.7 HIGH

RestrictedPython information leakage via `AttributeError.obj` and the `string` module

Reported by github_m · Published September 30, 2024

restrictedpython is fixed in d701cc36cccac36b21fa200f1f2d1945a9a215e6 and 7.3 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
restrictedpythonPyPId701cc36cccac36b21fa200f1f2d1945a9a215e6, 7.3

Risk scores

CVSS 4.0
8.7
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

Affected products

VendorProductVersions
zopefoundationRestrictedPython< 7.3
PyPIRestrictedPython0
zopefoundationRestrictedPython0
zoperestrictedpython0

Timeline

  • Sep 30, 2024 CVE Published
  • Sep 30, 2024 PoC Published (2 in total, the first dated here)
  • Oct 1, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (7 in total, the first dated here)
  • Nov 15, 2024 CVE Updated
  • Jan 4, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-47532
vulnetix vdb fixes CVE-2024-47532

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-47532/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›