Read the docs
TI-2024-31821 Aliases CVE-2024-47532GHSA-5rfv-66g4-jr8h

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

Priority MEDIUM 45CWE-200Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00716 54th percentileScored 2026-11-08
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed RestrictedPython (zopefoundation): 7.3RestrictedPython (PyPI): 7.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
zopefoundationRestrictedPythonbefore 7.37.3Patch availableCNA
—RestrictedPython (PyPI)before 7.37.3Patch availableGHSA-5rfv-66g4-jr8h
  • RestrictedPython Vendorzopefoundation Affected before 7.3 Fixed in 7.3 Patch available CNA
  • RestrictedPython (PyPI) Vendor— Affected before 7.3 Fixed in 7.3 Patch available GHSA-5rfv-66g4-jr8h

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*before 7.3Vulnerablezopefoundation
  • cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:* Versions before 7.3 Vulnerable ·zopefoundation

Remediation

  • Fix · CNA RestrictedPython (zopefoundation) Fixed in 7.3
  • Fix · GHSA-5rfv-66g4-jr8h RestrictedPython (PyPI) Fixed in 7.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-47532
  2. 2026-10-03 Alias added: GHSA-5rfv-66g4-jr8h

References

  • TI-2023-18901 RestrictedPython vulnerable to arbitrary code execution via stack frame sandbox escape CVSS 3.1CRITICAL 9.9
  • TI-2023-21665 Sandbox escape via various forms of "format" in RestrictedPython CVSS 3.1HIGH 8.3

Sources