CVEfocus › CVE database › CVE-2024-47532

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

CVSS 8.7 HighEPSS 1.0% (higher than 63% of CVEs)Published 2024-09-30Updated 2024-09-30Assigner: GitHub_M

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.

CWE-200

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
4Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04restrictedpythonNot affected
vulnerable_code_not_present
Ubuntu 25.10restrictedpythonNot affected
vulnerable_code_not_present
Ubuntu 24.04restrictedpythonFix pending6.2-1ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-47532
Ubuntu 22.04restrictedpythonFix pending4.0~b3-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-47532
Ubuntu 20.04restrictedpythonFix pending4.0~b3-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-47532
Debian 14restrictedpythonFixed8.0-1DEBIAN-CVE-2024-47532
Debian 13restrictedpythonFixed8.0-1DEBIAN-CVE-2024-47532
Debian 12restrictedpythonFix pendingDEBIAN-CVE-2024-47532
PyPI libraryrestrictedpythonFixed7.3PYSEC-2024-186

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.