PT-2023-27754

CVE-2023-41039

·

Published

2023-08-30

·

Updated

2025-03-18

Description by

CVSS 3.1
8.3
High
MetricsAV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L
Name of the Vulnerable Software and Affected Versions RestrictedPython versions prior to 5.4 RestrictedPython versions prior to 6.2
Description Python's "format" functionality allows someone controlling the format string to "read" all objects accessible through recursive attribute lookup and subscription from objects he can access. This can lead to critical information disclosure. With RestrictedPython, the format functionality is available via the format and format map methods of str (and unicode) (accessed either via the class or its instances) and via string.Formatter.
Recommendations Upgrade to version 5.4 or later. Upgrade to version 6.2 or later. As a temporary workaround, consider restricting access to the format and format map methods of str (and unicode) until a patch is available. Avoid using the string.Formatter until the issue is resolved. At the moment, there is no other information about additional workarounds for this vulnerability.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-XJW2-6JM9-RF67
PYSEC-2023-159
USN-7355-1
Found an issue in the description? Have something to add? Feel free to write us 👾