socket.getaddrinfo() previously accepted null bytes within host and port parameters which can cause the values to be silently truncated.
{
"cwe_ids": []
}"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2026-48.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "21076030861770392373032995900906272752",
"length": 2528
},
"id": "PSF-2026-48-074d566a",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3",
"target": {
"file": "Modules/socketmodule.c",
"function": "_socket_getaddrinfo_impl"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"237589589166236865593280625513617919085",
"128944625894823353786734383141217293770",
"226648975879189207048731385157022075512",
"136536657705032459892713354228283009012",
"94797748474915291320413516278956735213",
"248859736733738463949939699271706113334",
"165397524488787906482268879898432272534",
"281298692195685777061536499627788365318",
"279463111985734071028994929741107256138",
"98924691362851298717594316572125743777",
"145948185223666741500709793227880762153",
"276261254701251000019029068774130433538",
"63383466058210540967393048534763987904",
"106015914244606614067908015741912894086",
"242039363339732404738614503683311538634",
"298315515877432302002404897603509264741",
"231474453880975660975538731841920819927",
"236455253178137401253935067738579166091",
"282958898777331284493543277028258647886",
"35007355723099799687541619244610724020",
"99866745058546556664706780081832235675",
"159814251661899747880848856155155605883",
"17926041572709789140727130310806134024",
"55444700525553062580826721777731214441",
"161105944588359656792831510675863026059",
"133527011849653669027625742570751791806",
"276582248073390738711296438638505378207",
"2991868496751734277254378343025483243",
"137246628108088581052352493820602081409",
"243113974329295498046617403397581489546",
"293624891217420198831418198627722810622",
"214784738553920604771657428751580863920",
"21880793834856104526101753465220684389"
],
"threshold": 0.9
},
"id": "PSF-2026-48-56bb0bd5",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3",
"target": {
"file": "Modules/socketmodule.c"
}
}
]
"2026-10-30T01:22:33Z"