PT-2023-27754 · Python+3 · Restrictedpython+3
Abhishek Govindarasu
+2
·
Published
2023-08-30
·
Updated
2025-03-18
·
CVE-2023-41039
CVSS v3.1
8.3
High
| Vector | AV: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.Exploit
Fix
Special Elements Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Linuxmint
Restrictedpython
Ubuntu