Skip to content

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

HighCVSS 8.7 EPSS 0.72%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 6 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
debian/restrictedpython(Debian 12) = 4.0~b3-3; = 6.2-1; = 8.0-1; = 8.1-1 +2 more No fix listed No fix yet
debian/restrictedpython(Debian 13) < 8.0-1 8.0-1 Fixed
debian/restrictedpython(Debian 14) < 8.0-1 8.0-1 Fixed
pypi restrictedpython(PyPI) < 7.3; = 3.4.2; = 3.4.3; = 3.5.0 +34 more 7.3 Fixed
ubuntu/restrictedpython(Ubuntu 22.04) < 4.0~b3-3ubuntu0.1~esm1 4.0~b3-3ubuntu0.1~esm1 Fixed
ubuntu/restrictedpython(Ubuntu 24.04) < 6.2-1ubuntu0.24.04.1~esm1 6.2-1ubuntu0.24.04.1~esm1 Fixed
zope restrictedpython < 7.3 7.3 Fixed
zopefoundation RestrictedPython = < 7.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi restrictedpython(PyPI) < 7.3 7.3
pypi restrictedpython(PyPI) = 3.4.2 No fix listed
pypi restrictedpython(PyPI) = 3.4.3 No fix listed
pypi restrictedpython(PyPI) = 3.5.0 No fix listed
pypi restrictedpython(PyPI) = 3.5.1 No fix listed
pypi restrictedpython(PyPI) = 3.5.2 No fix listed
pypi restrictedpython(PyPI) = 3.6.0 No fix listed
pypi restrictedpython(PyPI) = 3.6.0a1 No fix listed
pypi restrictedpython(PyPI) = 4.0 No fix listed
pypi restrictedpython(PyPI) = 4.0a1 No fix listed
pypi restrictedpython(PyPI) = 4.0a2 No fix listed
pypi restrictedpython(PyPI) = 4.0a3 No fix listed
pypi restrictedpython(PyPI) = 4.0b1 No fix listed
pypi restrictedpython(PyPI) = 4.0b2 No fix listed
pypi restrictedpython(PyPI) = 4.0b3 No fix listed
pypi restrictedpython(PyPI) = 4.0b4 No fix listed
pypi restrictedpython(PyPI) = 4.0b5 No fix listed
pypi restrictedpython(PyPI) = 4.0b6 No fix listed
pypi restrictedpython(PyPI) = 4.0b7 No fix listed
pypi restrictedpython(PyPI) = 4.0b8 No fix listed
pypi restrictedpython(PyPI) = 5.0 No fix listed
pypi restrictedpython(PyPI) = 5.1 No fix listed
pypi restrictedpython(PyPI) = 5.2 No fix listed
pypi restrictedpython(PyPI) = 5.2a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 5.3 No fix listed
Show 25 more
ProductAffected versionsFixed in
pypi restrictedpython(PyPI) = 5.3a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 5.4 No fix listed
pypi restrictedpython(PyPI) = 6.0 No fix listed
pypi restrictedpython(PyPI) = 6.0a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 6.1 No fix listed
pypi restrictedpython(PyPI) = 6.2 No fix listed
pypi restrictedpython(PyPI) = 7.0 No fix listed
pypi restrictedpython(PyPI) = 7.0a1.dev0 No fix listed
pypi restrictedpython(PyPI) = 7.0a1.dev1 No fix listed
pypi restrictedpython(PyPI) = 7.0a2.dev0 No fix listed
pypi restrictedpython(PyPI) = 7.1 No fix listed
pypi restrictedpython(PyPI) = 7.2 No fix listed
pypi restrictedpython(PyPI) = 7.2a1.dev0 No fix listed
debian/restrictedpython(Debian:12) All versions No fix listed
debian/restrictedpython(Debian:12) = 4.0~b3-3 No fix listed
debian/restrictedpython(Debian:12) = 6.2-1 No fix listed
debian/restrictedpython(Debian:12) = 8.0-1 No fix listed
debian/restrictedpython(Debian:12) = 8.1-1 No fix listed
debian/restrictedpython(Debian:12) = 8.4-1 No fix listed
debian/restrictedpython(Debian:13) < 8.0-1 8.0-1
debian/restrictedpython(Debian:14) < 8.0-1 8.0-1
ubuntu/restrictedpython(Ubuntu:22.04) < 4.0~b3-3ubuntu0.1~esm1 4.0~b3-3ubuntu0.1~esm1
zopefoundation RestrictedPython = < 7.3 No fix listed
zope restrictedpython < 7.3 7.3
ubuntu/restrictedpython(Ubuntu:24.04) < 6.2-1ubuntu0.24.04.1~esm1 6.2-1ubuntu0.24.04.1~esm1

References