socket.getaddrinfo() accepts embedded null bytes in host and port
CVE-2026-116566Published 29 Oct 2026, 17:45 UTC
Real-world risk
0.2/ 10Low
Routine
If the vulnerable configuration applies to you: 0.4
PreliminaryFrom the CVSS vector only · confidence low
CVSS
5.3
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.16.0 | 3.16.0 |
What to do
Update to a fixed version: 3.16.0.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | AdjacentSame Wi-Fi, Bluetooth range or network segment | From the CVSS vector | 0.40 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 19), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.025
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.0252 × threat 0.850.171
- Rounded to one decimal between 0.1 and 100.2
Exploitation and evidence timeline
- 29 Oct 2026 Published
- 3 Dec 2026 Risk 0.2 (cvss fallback)
Weakness
CWE-158
References
- https://github.com/python/cpython/pull/160899patch
- https://github.com/python/cpython/issues/160898issue-tracking
- https://mail.python.org/archives/list/[email protected]/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/vendor-advisory
- https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3patch
- http://www.openwall.com/lists/oss-security/2026/10/29/4
- CVE-2026-116566 on CVE.org