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

Published Sep 30, 2024
·
Updated

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.

Other sources

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.utilitybuiltins or otherwise do not make it available in the restricted execution environment.

MITRE

Affected Software

3 affected componentsFixes available
pip/RestrictedPython<7.3
7.3
Zope RestrictedPython<7.3
debian/restrictedpython<=4.0~b3-2, <=4.0~b3-3
8.0-1

Event History

Sep 30, 2024
CVE Published
via MITRE·03:29 PM
Data Sourced
via MITRE·03:29 PM
DescriptionWeakness
Advisory Published
via GitHub·05:14 PM
Mar 23, 2025
Data Sourced
via Ubuntu·01:57 AM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-47532?

The CVE-2024-47532 vulnerability has been identified as having a significant impact as it allows unauthorized access to protected information.

2

How do I fix CVE-2024-47532?

You can fix CVE-2024-47532 by upgrading to version 7.3 of the RestrictedPython package.

3

What software is affected by CVE-2024-47532?

CVE-2024-47532 affects the RestrictedPython package prior to version 7.3.

4

Is there a workaround for CVE-2024-47532?

A temporary workaround for CVE-2024-47532 is to disable access to the string module if it is not required.

5

What causes CVE-2024-47532?

CVE-2024-47532 is caused by an AttributeError in the handling of the string module that exposes protected information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203