CVE & CISA-KEV Catalog

CVE-2023-41039

HIGH
8.3
CVSS v3
NVD

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.

How to fix

Remediation Available
restrictedpythonDebian
Fixed in:6.2-1CVE-2023-41039
Fixed in:6.2-1CVE-2023-41039
python3-restrictedpythonUbuntu
Fixed in:4.0~b3-2ubuntu0.1~esm1USN-7355-1
Fixed in:4.0~b3-3ubuntu0.1~esm1USN-7355-1
Fixed in:6.2-1ubuntu0.24.04.1~esm1USN-7355-1
restrictedpythonUbuntu
Fixed in:4.0~b3-2ubuntu0.1~esm1USN-7355-1
Fixed in:4.0~b3-3ubuntu0.1~esm1USN-7355-1
Fixed in:6.2-1ubuntu0.24.04.1~esm1USN-7355-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh
User InteractionRequired
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityLow

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:L

Exploit Intelligence

0.64%probability of exploitation in 30 days
46thpercentile

Moderate risk: more likely to be exploited than 46% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-74 (Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2013-2251Critical9.8100%KEVFix
CVE-2023-22527Critical9.8100%KEV + RansomFix
CVE-2019-2725Critical9.8100%KEV + RansomFix
CVE-2022-46169Critical9.8100%KEVFix
CVE-2022-35914Critical9.8100%KEV-
CVE-2019-17558High7.599%KEVFix
Embed a live status badge for CVE-2023-41039
CVE-2023-41039 severity badge

Markdown

[![CVE-2023-41039](https://tridentstack.com/cve/badge/CVE-2023-41039.svg)](https://tridentstack.com/cve/CVE-2023-41039)

HTML

<a href="https://tridentstack.com/cve/CVE-2023-41039"><img src="https://tridentstack.com/cve/badge/CVE-2023-41039.svg" alt="CVE-2023-41039"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.