Home
Trends
Vulnerabilities
News
Researchers
Why dbugs?

Abhishek Govindarasu

#31129of 53,633
8.3Total CVSS
Vulnerabilities · 1
PT-2023-27754
8.3
2023-08-30
Python · Restrictedpython · CVE-2023-41039
**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.