# CVE-2026-116566: socket.getaddrinfo() accepts embedded null bytes in host and port

- Severity: Medium 5.3 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2026-10-29T17:45:47.583Z
- Modified: 2026-11-17T13:41:02.428Z
- Also known as: PSF-2026-48, BIT-LIBPYTHON-2026-116566, BIT-PYTHON-2026-116566, BIT-PYTHON-MIN-2026-116566
- Weaknesses: CWE-158
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PSF

## Description

socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.16.0
- https://github.com/python/cpython: before 131a3a66c5f400b588f9fd2732a5ed4e89623ee3
- libpython (Bitnami): before 3.16.0
- python (Bitnami): before 3.16.0
- python-min (Bitnami): before 3.16.0

## Every score

- PSF: CVSS:4.0 5.3 Medium `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`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/pull/160899> (patch, web)
- <https://github.com/python/cpython/issues/160898> (issue-tracking, report, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2026/10/29/4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-116566> (web)

## Sources

- CVE List: [CVE-2026-116566](https://www.cve.org/CVERecord?id=CVE-2026-116566), CVE Terms of Use, modified 2026-10-30
- Python Software Foundation: [PSF-2026-48](https://osv.dev/vulnerability/PSF-2026-48), CC-BY-4.0, modified 2026-11-17
- NVD: [CVE-2026-116566](https://nvd.nist.gov/vuln/detail/CVE-2026-116566), Public domain, modified 2026-10-30
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-116566](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-116566), Apache-2.0, modified 2026-11-17
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-116566](https://osv.dev/vulnerability/BIT-PYTHON-2026-116566), Apache-2.0, modified 2026-11-17
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-116566](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-116566), Apache-2.0, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-116566 · Whole record: https://cve.day/CVE-2026-116566.json · Rebuilt by cve.day 2026-11-25T22:59:47.815Z
