CVE
CVE-2026-116566
published medium CVSS 4.0 · 5.3socket.getaddrinfo() accepts embedded null bytes in host and port
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.16.0 · Other versions: unaffected | Affected | Not stated | PSF |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.16.0 (affected · python)Default: unaffected | PSF · cna |
Weaknesses
1- CWE-158
References
5- http://www.openwall.com/lists/oss-security/2026/10/29/4
- https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3
- https://github.com/python/cpython/issues/160898
- https://github.com/python/cpython/pull/160899
- https://mail.python.org/archives/list/[email protected]/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/
Provider assertions
3PSF · cna
socket.getaddrinfo() accepts embedded null bytes in host and port
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4bbd85cae4afcc3260f08dfb6a946643c29393fb9e937d1f742dd28de0edb078
- Ingested
- 30 Oct 2026, 17:19:37 UTC
- Source record
- Official CVE record