Description
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Python Software Foundation CPython
Default version status: unaffected
0 to < 3.16.0affected
References
- https://github.com/python/cpython/pull/160899 ↗
- https://github.com/python/cpython/issues/160898 ↗
- https://mail.python.org/archives/list/security-announce@python.org/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/ ↗
- https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3 ↗
- http://www.openwall.com/lists/oss-security/2026/10/29/4 ↗