Advisory

GHSA-5rfv-66g4-jr8h

Also known as: CVE-2024-47532, PYSEC-2024-186

Summary

RestrictedPython information leakage via AttributeError.obj and the string module

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-09-30 17:14 UTC
Modified
2025-01-21 18:21 UTC

Affected packages and fixes

restrictedpython

PyPI · All systems

Affected

  • introduced 0, fixed 7.3 (ecosystem)

Fixed versions

7.3

Fix

  • Fixed version 7.3
    pip install --upgrade restrictedpython==7.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences