8.7

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

Analyzed
AliasesGHSA-5rfv-66g4-jr8hPYSEC-2024-186UBUNTU-CVE-2024-47532
Published 30-09-2024Last modified 30-09-2024

Vulnerability summary

CVE-2024-47532 is a high (CVSS 8.7) vulnerability in zope restrictedpython. EPSS estimates a 0.72% chance of exploitation in the next 30 days, higher than 53.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.72%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 30-09-2024
    PublishedVulnerability first disclosed.
  2. 30-09-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 5 sources · 2 versions

EPSS trend

Probability

0.72%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.72% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Restrictedpython

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • restrictedpythonAll versions (No fix recorded) | < 8.0-1
PyPI1 product
  • restrictedpython< d701cc36cccac36b21fa200f1f2d1945a9a215e6 | < 7.3
Ubuntu1 product
  • restrictedpython< 4.0~b3-2ubuntu0.1~esm1 | < 4.0~b3-3ubuntu0.1~esm1 | < 6.2-1ubuntu0.24.04.1~esm1
Zope1 product
Zopefoundation1 product

5 vendors · 5 products

References

9 links