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.
Metrics
CVSS 3.1 7.5/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| python | python | >= 3.11, <= 3.11.4 |
References
- https://github.com/python/cpython/issues/106242Issue Tracking, Patch
- https://github.com/python/cpython/pull/107981Patch
- https://github.com/python/cpython/pull/107982Patch
- https://github.com/python/cpython/pull/107983Patch
- https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/
- https://security.netapp.com/advisory/ntap-20231006-0015/Third Party Advisory
- https://github.com/python/cpython/issues/106242Issue Tracking, Patch
- https://github.com/python/cpython/pull/107981Patch
- https://github.com/python/cpython/pull/107982Patch
- https://github.com/python/cpython/pull/107983Patch
- https://mail.python.org/archives/list/security-announce%40python.org/thread/D6CDW3ZZC5D444YGL3VQUY6D4ECMCQLD/
- https://security.netapp.com/advisory/ntap-20231006-0015/Third Party Advisory
Timeline
- Published
- Aug 23, 2023
- Last modified
- Jun 17, 2026
- NVD status
- Modified