Technical impact
The flaw in CPython’s socket.getaddrinfo function allows null bytes embedded within host and port parameters, causing those strings to be silently truncated. This results in the function resolving a different host name or port than intended, potentially directing a program to connect to an unintended destination. The weakness is linked to insufficient input validation and improper string handling, categorized as CWE‑140 and CWE‑158.
Affected Systems
The vulnerability affects Python Software Foundation’s CPython implementation of the Python language. All releases prior to the official patch that rejects embedded null bytes are vulnerable; no specific version identifiers are listed, so any CPython installation not yet updated is considered at risk.
Risk and Exploitability
The CVSS score of 5.3 indicates a moderate severity, while the EPSS score of less than 1% suggests a very low but nonzero exploitation probability. The vulnerability is not included in CISA’s KEV catalog. The likely attack vector requires an entity that can supply crafted host or port strings to the application—such as user input or an attacker-controlled configuration. When provided, the erroneous resolution can redirect traffic, potentially exposing data or enabling malicious interactions.