socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
Attack Parameters
Attack Vector
Adjacent
Requires local network access
Attack Complexity
Low
Easy to exploit
Attack Requirements
Present
Additional conditions required
Privileges Required
High
Admin privileges needed
User Interaction
Passive
Minimal interaction
Impact Assessment
Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption
CVSS Vector v4.0
Weakness Type (CWE)
References 5
https://github.com/python/cpython/issues/160898
cna@python.org
https://github.com/python/cpython/pull/160899
cna@python.org
https://mail.python.org/archives/list/security-announce@python.org/thread/HCHE6…
cna@python.org
http://www.openwall.com/lists/oss-security/2026/10/29/4
af854a3a-2127-422b-91ae-364da2661108
https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623e…
cna@python.org