CVE-2023-41039
CVE-2023-41039 is a high-severity vulnerability in Zope Restrictedpython with a CVSS 3.x base score of 8.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-74.
Key facts
- Severity: High (CVSS 3.x base score 8.3)
- EPSS exploit prediction: 1% (53rd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-74
- Affected product: Zope Restrictedpython
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2023-41039?
- 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.
- How severe is CVE-2023-41039?
- CVE-2023-41039 has a CVSS 3.x base score of 8.3, rated high severity. It is exploitable over network with low attack complexity, requires high privileges and user interaction. Impact on confidentiality is high, integrity high, and availability low.
- Is CVE-2023-41039 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (53rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-41039?
- CVE-2023-41039 affects Zope Restrictedpython. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-41039?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2023-41039 published?
- CVE-2023-41039 was published on 2023-08-30 and last updated on 2026-06-17.
References
- https://github.com/zopefoundation/RestrictedPython/commit/4134aedcff17c977da7717693ed89ce56d54c120
- https://github.com/zopefoundation/RestrictedPython/security/advisories/GHSA-xjw2-6jm9-rf67
Affected products (1)
- cpe:2.3:a:zope:restrictedpython:*:*:*:*:*:*:*:*
More vulnerabilities in Zope Restrictedpython
- CVE-2023-37271 — High (CVSS 8.4): RestrictedPython is a tool that helps to define a subset of the Python language which allows users to provide a program…
- CVE-2024-47532 — Medium (CVSS 6.5): RestrictedPython is a restricted execution environment for Python to run untrusted code. A user can gain access to…
All CVEs affecting Zope Restrictedpython →
Other CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities
- CVE-2026-122051 — Critical (CVSS 10.0): A flaw has been found in Edimax BR-6208AC 1.32. Affected by this vulnerability is an unknown functionality of the file…
- CVE-2026-120198 — Critical (CVSS 10.0): A vulnerability has been found in WAVLINK WL-WN530BE1-A V251117. Affected is the function con_check_read_finish of the…
- CVE-2026-114575 — Critical (CVSS 10.0): A flaw has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. Affected by this issue is the function…
- CVE-2026-108918 — Critical (CVSS 10.0): A vulnerability was identified in Edimax BR-6208AC 1.32. Impacted is an unknown function of the file…
- CVE-2026-108917 — Critical (CVSS 10.0): A vulnerability was determined in Edimax BR-6208AC 1.32. This issue affects some unknown processing of the file…
- CVE-2026-105135 — Critical (CVSS 10.0): A vulnerability has been found in InternLM MindSearch 0.1.0. This issue affects the function ExecutionAction.run of the…
Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →