CPython getaddrinfo accepts embedded null bytes (CVE-2026-116566)
Python's security list rates the socket.getaddrinfo host and port flaw medium; the notice is truncated.
Null-byte truncation in CPython socket.getaddrinfo()
CPython’s socket.getaddrinfo() accepted embedded null bytes in the host and port arguments and could silently truncate those values. An attacker who can supply those parameters may cause name resolution to use a shortened host or port. The flaw is in CPython; Python has not listed affected builds.
What to do: Python has not listed a fixed version. Apply CPython’s update for CVE-2026-116566 when it is published.
| Product | Affected |
|---|---|
| Python CPython | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Python's security list rates the socket.getaddrinfo host and port flaw medium; the notice is truncated.
Today 846 readers · 1.1K views · 848 reads · all time 159K views