All reports
High

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

Affected versions

Version ranges need review.

Affected versions
Unknown
Fixed version
7.3
Affected versions
< 7.3
Fixed version
7.3

Exploitation

CVE-2024-47532

Probability of exploitation in the next 30 days: 0.72%

FIRST EPSS · 2026-11-24

Description

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

Links

Credits

  • Quasar0147
  • dronex7070
  • d-maurer
  • dataflake
  • icemac