Vulnerability Description
RestrictedPython is a restricted execution environment for Python to run untrusted code. 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`. All known versions of `RestrictedPython` are vulnerable. This issue has been addressed in commit `4134aedcff1` which has been included in the 5.4 and 6.2 releases. Users are advised to upgrade. There are no known workarounds for this vulnerability.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Zope | Restrictedpython | < 5.4 |
Related Weaknesses (CWE)
References
- https://github.com/zopefoundation/RestrictedPython/commit/4134aedcff17c977da7717Patch
- https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-xjw2Vendor Advisory
- https://github.com/zopefoundation/RestrictedPython/commit/4134aedcff17c977da7717Patch
- https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-xjw2Vendor Advisory
FAQ
What is CVE-2023-41039?
CVE-2023-41039 is a vulnerability with a CVSS score of 8.3 (HIGH). RestrictedPython is a restricted execution environment for Python to run untrusted code. Python's "format" functionality allows someone controlling the format string to "read" all objects accessible t...
How severe is CVE-2023-41039?
CVE-2023-41039 has been rated HIGH with a CVSS base score of 8.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-41039?
Check the references section above for vendor advisories and patch information. Affected products include: Zope Restrictedpython.