Advisory

PYSEC-2024-186

Also known as: CVE-2024-47532, GHSA-5rfv-66g4-jr8h

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2024-09-30 16:15 UTC
Modified
2025-01-19 04:56 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: PyPA Advisory Database · CC BY 4.0

Sources & licences