Security mailing lists by PureSourceCode

CVE-2024-47532

HIGH 8.7CVSS 4.0

RestrictedPython information leakage via `AttributeError.obj` and the `string` module

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.

Published
30 Sep 2024
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-200
Also known as
GHSA-5rfv-66g4-jr8hPYSEC-2024-186
Sources
NVDJSONOSV GHSA-5rfv-66g4-jr8hJSONOSV PYSEC-2024-186JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV PyPA CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD zope restrictedpython
cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*
< 7.3 7.3
OSV PyPI restrictedpython < 7.3 7.3

References

History

  • 25 Nov 2026 20:56 UTC · NVD: first stored (published 30 Sep 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Sep 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 Sep 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.