Skip to main content
← All vulnerabilities
CVE-2026-116566EUVD-2026-113279GHSA-Q27H-3599-9X7JPSF-2026-48

socket.getaddrinfo() accepts embedded null bytes in host and port

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.16.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

The Python standard library's socket module, specifically its socket.getaddrinfo() function, is affected. Because it accepts host and port values containing embedded null bytes, those values can be silently truncated, which may cause name resolution to connect to a different host or port than the one the caller intended.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

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

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  4. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.16.0

References 4

GitHub · python/cpython

mail.python.org