Vulnerability · Published Oct 29, 2026 · Assigned by PSF
CVE-2026-116566socket.getaddrinfo() accepts embedded null bytes in host and port
Medium 5.3
In plain English
A medium-severity security flaw in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities).
Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.3%top 82.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python3.11 | no fix listed | DEBIAN-CVE-2026-116566 |
| Debian:13 | python3.13 | no fix listed | DEBIAN-CVE-2026-116566 |
| Debian:14 | python3.14 | no fix listed | DEBIAN-CVE-2026-116566 |
| Debian:14 | python3.15 | no fix listed | DEBIAN-CVE-2026-116566 |
| Ubuntu:22.04:LTS | python3.10 | no fix listed | UBUNTU-CVE-2026-116566 |
| Ubuntu:24.04:LTS | python3.12 | no fix listed | UBUNTU-CVE-2026-116566 |
| Ubuntu:26.04:LTS | python3.14 | no fix listed | UBUNTU-CVE-2026-116566 |
| Ubuntu:26.10 | python3.14 | no fix listed | UBUNTU-CVE-2026-116566 |
| Ubuntu:26.10 | python3.15 | no fix listed | UBUNTU-CVE-2026-116566 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.16.0 |
Weakness: CWE-158 · Vector: CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/python/cpython/pull/160899 patch
- https://github.com/python/cpython/issues/160898 issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/ vendor-advisory
- https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3 patch
- http://www.openwall.com/lists/oss-security/2026/10/29/4