# CVE-2023-41105: os.path.normpath() truncates on null bytes

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.52%, higher than 85% of CVEs (2026-12-01)
- Published: 2023-08-23T00:00:00.000Z
- Modified: 2026-09-08T08:48:18.852Z
- Also known as: PSF-2023-9, BIT-LIBPYTHON-2023-41105, BIT-PYTHON-2023-41105, BIT-PYTHON-MIN-2023-41105
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- python python: from 3.11 up to 3.11.4; from 3.11.0 up to 3.11.4
- https://github.com/python/cpython: from 7c12e4835ebe52287acd200a2e76b533413b15d0 before 09322724319d4c23195300b222a1c0ea720af56b; before ede98958810b76694cf756d305b564cd6adc1a48; before ccf81e1088c25a9f4464e478dc3b5c03ed7ee63b
- netapp active_iq_unified_manager: no versions given
- libpython (Bitnami): from 3.11.0 before 3.11.5
- python (Bitnami): from 3.11.0 before 3.11.5
- python-min (Bitnami): from 3.11.0 before 3.11.5

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/issues/106242> (fix, issue-tracking, patch, web)
- <https://github.com/python/cpython/pull/107983> (fix, patch)
- <https://github.com/python/cpython/pull/107981> (fix, patch)
- <https://github.com/python/cpython/pull/107982> (fix, patch)
- <https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/> (web)
- <https://security.netapp.com/advisory/ntap-20231006-0015/> (advisory, third-party-advisory)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/> (advisory)
- <https://github.com/python/cpython/pull/106816> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-41105> (web)

## Sources

- CVE List: [CVE-2023-41105](https://www.cve.org/CVERecord?id=CVE-2023-41105), CVE Terms of Use, modified 2024-10-03
- Python Software Foundation: [PSF-2023-9](https://osv.dev/vulnerability/PSF-2023-9), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2023-41105](https://nvd.nist.gov/vuln/detail/CVE-2023-41105), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2023-41105](https://osv.dev/vulnerability/BIT-LIBPYTHON-2023-41105), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2023-41105](https://osv.dev/vulnerability/BIT-PYTHON-2023-41105), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2023-41105](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2023-41105), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-41105 · Whole record: https://cve.day/CVE-2023-41105.json · Rebuilt by cve.day 2026-11-25T22:58:27.306Z
