NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

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

highCVSS 4.0 8.7 · 3.1 7.5GHSA-5rfv-66g4-jr8h

Impact A user can gain access to protected (and potentially sensible) information indirectly via AttributeError.obj and the string module. Patches The problem will be fixed in version 7.3. Workarounds If the application does not require access to the module string, it can remove it from RestrictedPython.Utilities.utilitybuiltins or otherwise do not make it available in the restricted execution environment.

Published Sep 30, 2024 · Updated Jan 21, 2025

Affected packages

RestrictedPython

Ecosystem
PyPI
Affected
< 7.3
Fixed in
7.3
Check
pip show RestrictedPython

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

A user can gain access to protected (and potentially sensible) information indirectly via AttributeError.obj and the string module.

Patches

The problem will be fixed in version 7.3.

Workarounds

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.

Credited to Quasar0147, dronex7070, d-maurer, dataflake, icemac.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries