CVE-2026-116566
Medium 5.3No known exploitationFix availablesocket.getaddrinfo() accepts embedded null bytes in host and port
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 18% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Weakness: CWE-158
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- mail.python.org (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl3 python3 3.12.14-2 on Azure Linux 3.0 | Not documented | Not documented | Microsoft MSRC |
| Microsoft | azl3 python3 3.12.16-1 on Azure Linux 3.0 | Not documented | Not documented | Microsoft MSRC |
| Microsoft | azl3 python3 3.12.16-2 on Azure Linux 3.0 | Not documented | Not documented | Microsoft MSRC |
| Microsoft | azl4 python-py 1.11.0-22.azl4 on Azure Linux 4.0 | Not documented | Not documented | Microsoft MSRC |
| Python Software Foundation | CPython | all versions before 3.16.0 | 3.16.0 | CVE Program |
Timeline
Disclosure
CVE record published by PSF
Source: CVE Program (opens in a new tab)
Advisory
Microsoft advisory published
Advisory change
Microsoft advisory revised (2.0): Information published.
Advisory change
Microsoft advisory revised (3.0): Information published.
Advisory change
Microsoft advisory revised (4.0): Information published.
Advisory change
Microsoft advisory revised (5.0): Information published.
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3 (opens in a new tab)patch
- https://github.com/python/cpython/pull/160899 (opens in a new tab)patch
- https://mail.python.org/archives/list/security-announce@python.org/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/ (opens in a new tab)vendor-advisory
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- http://www.openwall.com/lists/oss-security/2026/10/29/4 (opens in a new tab)
- https://github.com/python/cpython/issues/160898 (opens in a new tab)issue-tracking