CVE-2026-116566Published Oct 29, 2026 · Oct 29Updated 3d ago
CPython host and port truncation in socket.getaddrinfo()
Python Software Foundation CPython
Medium5.3Fix available
Python Software Foundation CPython
socket.getaddrinfo() previously accepted null bytes in its host and port parameters, silently truncating those values. An attacker who can supply either parameter may cause it to be truncated; the input does not specify whether this requires network access, authentication, or user interaction.
Engineers running Python Software Foundation CPython should check their use of socket.getaddrinfo(); affected versions are not specified.