CVE-2023-41105
python: file path truncation at \0 characters
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
An issue was discovered in Python 3.11 through 3.11.4. If a path containing '\0' bytes is passed to os.path.normpath(), the path will be truncated unexpectedly at the first '\0' byte. There are plausible cases in which an application would have rejected a filename for security reasons in Python 3.10.x or earlier, but that filename is no longer rejected in Python 3.11.x.
Python 3.11 os.path.normpath() function is vulnerable to path truncation if a null byte is inserted in the middle of passed path. This may result in bypass of allow lists if implemented before the verification of the path.
It was discovered that Python incorrectly handled certain inputs. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 14.04 LTS and Ubuntu 18.04 LTS. It was discovered that Python incorrectly used regular expressions vulnerable to catastrophic backtracking. A remote attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 LTS.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2023-08-23 CVE Reserved
- 2023-08-23 CVE Published
- 2023-10-13 First Exploit
- 2024-10-03 CVE Updated
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-158: Improper Neutralization of Null Byte or NUL Character
- CWE-426: Untrusted Search Path
CAPEC
References (9)
URL | Date | SRC |
---|---|---|
https://github.com/JawadPy/CVE-2023-41105-Exploit | 2023-10-13 |
URL | Date | SRC |
---|---|---|
https://github.com/python/cpython/issues/106242 | 2023-11-07 | |
https://github.com/python/cpython/pull/107981 | 2023-11-07 | |
https://github.com/python/cpython/pull/107982 | 2023-11-07 | |
https://github.com/python/cpython/pull/107983 | 2023-11-07 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2023-41105 | 2023-11-14 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2235795 | 2023-11-14 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Python Search vendor "Python" | Python Search vendor "Python" for product "Python" | >= 3.11.0 <= 3.11.4 Search vendor "Python" for product "Python" and version " >= 3.11.0 <= 3.11.4" | - |
Affected
| ||||||
Netapp Search vendor "Netapp" | Active Iq Unified Manager Search vendor "Netapp" for product "Active Iq Unified Manager" | - | windows |
Affected
|