CVE Program
CNA-CVE-2026-116566
socket.getaddrinfo() accepts embedded null bytes in host and port
Details
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Python | python | All versions before 3.16.0 (fixed in 3.16.0) |
References
- https://www.cve.org/CVERecord?id=CVE-2026-116566
- https://github.com/python/cpython/pull/160899
- https://github.com/python/cpython/issues/160898
- https://mail.python.org/archives/list/[email protected]/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/
- https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3