{"id":"CVE-2023-41105","aliases":["CVE-2023-41105","PSF-2023-9","BIT-LIBPYTHON-2023-41105","BIT-PYTHON-2023-41105","BIT-PYTHON-MIN-2023-41105"],"related":[],"kind":"vulnerability","state":"published","title":"os.path.normpath() truncates on null bytes","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Passing a path with null bytes to the `os.path.normpath()` function causes the returned path to be unexpectedly truncated at the first occurrence of null bytes within the path. Python versions before 3.11.0 didn’t truncate the path on null bytes.\n\nIf allowlisting is applied before a call to `os.path.normpath()` is used later in the program, the allowlisting can be circumvented if the path containing null bytes is constructed to pass the allowlist but then change to the targeted resource after truncation.","format":"markdown","source":"psf"}],"published":"2023-08-23T00:00:00.000Z","modified":"2026-09-08T08:48:18.852Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-426"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"3.11","lastAffected":"3.11.4","status":"affected"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"git","introduced":"7c12e4835ebe52287acd200a2e76b533413b15d0","status":"affected","fixed":"09322724319d4c23195300b222a1c0ea720af56b"},{"type":"git","status":"affected","fixed":"ede98958810b76694cf756d305b564cd6adc1a48"},{"type":"git","status":"affected","fixed":"ccf81e1088c25a9f4464e478dc3b5c03ed7ee63b"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"status":"affected","introduced":"3.11.0","lastAffected":"3.11.4"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"active_iq_unified_manager","cpe":"cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:windows:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.5"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.5"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.5"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/issues/106242","tags":["fix","issue-tracking","patch","web","x-transferred"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/pull/107983","tags":["fix","patch","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/python/cpython/pull/107981","tags":["fix","patch","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/python/cpython/pull/107982","tags":["fix","patch","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20231006-0015/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/","tags":["advisory"],"sources":["psf"]},{"url":"https://github.com/python/cpython/pull/106816","tags":["web"],"sources":["psf"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41105","tags":["web"],"sources":["bitnami"]}],"credits":["Noriko Totsuka of JPCERT/CC","Masashi Yamane of LAC Co., Ltd","Delta Regeer","Finn Womack","Steve Dower","Seth Michael Larson"],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-10-03T14:01:12.902Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-41105","url":"https://www.cve.org/CVERecord?id=CVE-2023-41105","licence":"CVE Terms of Use","modified":"2024-10-03T14:04:01.955Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2023-9","url":"https://osv.dev/vulnerability/PSF-2023-9","licence":"CC-BY-4.0","modified":"2025-10-09T01:02:46.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-41105","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-41105","licence":"Public domain","modified":"2026-06-17T06:20:36.483Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2023-41105","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2023-41105","licence":"Apache-2.0","modified":"2026-09-08T08:48:08.933Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2023-41105","url":"https://osv.dev/vulnerability/BIT-PYTHON-2023-41105","licence":"Apache-2.0","modified":"2026-09-08T08:48:18.852Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2023-41105","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2023-41105","licence":"Apache-2.0","modified":"2026-09-08T08:47:30.083Z"}],"updatedAt":"2026-11-25T22:58:27.306Z","epss":{"score":0.02517,"percentile":0.85263,"date":"2026-12-01T12:00:22.000Z"}}