{"id":"PSF-2026-48","details":"socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.","aliases":["CVE-2026-116566"],"modified":"2026-10-30T01:22:33.216350055Z","published":"2026-10-29T17:45:47.583Z","database_specific":{"cwe_ids":[]},"references":[{"type":"WEB","url":"https://github.com/python/cpython/pull/160899"},{"type":"REPORT","url":"https://github.com/python/cpython/issues/160898"},{"type":"ADVISORY","url":"https://mail.python.org/archives/list/security-announce@python.org/thread/HCHE62VYTPYI6WOPJQDWUBR4CINBPSM7/"},{"type":"FIX","url":"https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python/cpython","events":[{"introduced":"0"},{"fixed":"131a3a66c5f400b588f9fd2732a5ed4e89623ee3"}]}],"versions":["v3.16.0a1","v3.15.0b1","v3.15.0a8","v3.15.0a7","v3.15.0a6","v3.15.0a5","v3.15.0a4","v3.15.0a3","v3.15.0a2","v3.15.0a1","v3.14.0b1","v3.14.0a7","v3.14.0a6","v3.14.0a5","v3.14.0a4","v3.14.0a3","v3.14.0a2","v3.14.0a1","v3.13.0b1","v3.13.0a6","v3.13.0a5","v3.13.0a4","v3.13.0a3","v3.13.0a2","v3.13.0a1","v3.12.0b1","v3.12.0a7","v3.12.0a6","v3.12.0a5","v3.12.0a4","v3.12.0a3","v3.12.0a2","v3.12.0a1","v3.11.0b1","v3.11.0a7","v3.11.0a6","v3.11.0a5","v3.11.0a4","v3.11.0a3","v3.10.0a7","v3.10.0a1","v3.9.0a2","v3.7.0a2","v3.6.0b1","v3.6.0a3","v3.5.0b1","v3.5.0a4","v3.5.0a3","v3.5.0a2","v3.5.0a1","v3.4.0b3","v3.4.0b2","v3.4.0b1","v3.4.0a4","v3.4.0a3","v3.4.0a2","v3.4.0a1","v3.3.0rc3","v3.3.0rc2","v3.3.0rc1","v3.3.0b2","v3.3.0b1","v3.3.0a4","v3.3.0a3","v3.3.0a2","v3.2rc3","v3.2rc2","v3.2rc1","v3.2b2","v3.2b1","v3.2a4","v3.2a3","v3.2a2","v3.2a1","v3.1","v3.1rc2","v3.1rc1","v3.1b1","v3.1a2","v3.1a1","v3.0rc3","v3.0rc2","v3.0rc1","v3.0b3","v3.0b2","v3.0b1","v3.0a5","v3.0a4","v3.0a3","v3.0a2","v3.0a1","v2.4","v2.4c1","v2.4b2","v2.4b1","v2.4a3","v2.4a2","v2.4a1","v2.3c2","v2.3c1","v2.2a3","v2.1","v2.1c2","v2.1c1","v2.1b2","v2.1b1","v2.1a2","v2.1a1","v2.0","v2.0c1","v2.0b2","v2.0b1","v1.6a2","v1.6a1","v1.5.2","v1.5.2c1","v1.5.2b2","v1.5.2b1","v1.5.2a2","v1.5.2a1","v1.5.1","v1.5","v1.5b2","v1.5b1","v1.5a4","v1.5a3","v1.5a2","v1.5a1","v1.4","v1.4b3","v1.4b2","v1.4b1","v1.3","v1.3b1","v1.2","v1.2b4","v1.2b3","v1.2b2","v1.2b1","v1.1.1","v1.1","v1.0.2","v1.0.1","v0.9.9","v0.9.8"],"database_specific":{"source":"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2026-48.json","vanir_signatures":[{"source":"https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3","target":{"function":"_socket_getaddrinfo_impl","file":"Modules/socketmodule.c"},"deprecated":false,"digest":{"function_hash":"21076030861770392373032995900906272752","length":2528},"id":"PSF-2026-48-074d566a","signature_type":"Function","signature_version":"v1"},{"target":{"file":"Modules/socketmodule.c"},"deprecated":false,"digest":{"threshold":0.9,"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"]},"id":"PSF-2026-48-56bb0bd5","signature_type":"Line","signature_version":"v1","source":"https://github.com/python/cpython/commit/131a3a66c5f400b588f9fd2732a5ed4e89623ee3"}],"vanir_signatures_modified":"2026-10-30T01:22:33Z"}}],"schema_version":"1.9.2"}