Description
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Severity (CVSS)
| Base score | 5.3 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-158 — CWE-158
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 to <3.16.0 [affected] |
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
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 30 Oct 2026 07:06 UTC.