CVE-2026-116566 socket.getaddrinfo() accepts embedded null bytes in host and port

Medium 5.3 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-116566?

CVE-2026-116566 is a medium-severity vulnerability in CPython, published on 29 Oct 2026.

Official description

socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.

Weakness: CWE-158

Which versions are affected by CVE-2026-116566?

How do I fix CVE-2026-116566?

No fix has been published for CVE-2026-116566 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-116566 being exploited?

There is no known exploitation of CVE-2026-116566 in the wild and no public exploit code.

Sources

Also known as GHSA-q27h-3599-9x7j, PSF-2026-48.

Is CVE-2026-116566 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free