{"id":"DHI-ffmn-pnov-buz7-5qr4","summary":"``inet_aton()`` accepts trailing characters after a valid IP.  Because of","details":"``inet_aton()`` accepts trailing characters after a valid IP.  Because of\nthat, Python ``ssl.match_hostname('1.1.1.1 ; this should not work but does')``\nsucceeded when it should fail.\n\nThe issue was introduced in `bpo-32819\n\u003chttps://bugs.python.org/issue32819\u003e`_ by `commit aef1283b\n\u003chttps://github.com/python/cpython/commit/aef1283ba428e33397d87cee3c54a5110861552d\u003e`_.\nOnly Python 3.7 and newer are affected. It's a potential security bug\nalthough **low severity**. For one Python 3.7 and newer **no longer use**\n``ssl.match_hostname()`` to verify hostnames and IP addresses of a\ncertificate: **matching is performed by OpenSSL**.\n\nIt should not possible to register a x509 certificate with a hostname with\nspaces.\n\nThe glibc function ``inet_aton()`` accepts input as valid if said input is\na IPv4 address followed by zero or more characters that are valid\nwhite-space as decided by ``isspace()``, with the rest of the string after\nthe first white-space being ignored. As ``'\\r'`` is a valid white-space\ncharacter the rest of the string is ignored (including the ``'\\r'``). See\n`glibc bug 24111: Deprecate inet_addr, inet_aton\n\u003chttps://sourceware.org/bugzilla/show_bug.cgi?id=24111\u003e`_.\n","modified":"2026-11-18T12:01:26.886736864Z","published":"2026-11-10T01:38:28Z","upstream":["PSF-2019-13"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-ffmn-pnov-buz7-5qr4"}],"affected":[{"package":{"name":"python-3.10","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/python-3.10"},"versions":["3.10.19-r0","3.10.20-r0","3.10.20-r1","3.10.20-r10","3.10.20-r11","3.10.20-r12","3.10.20-r13","3.10.20-r2","3.10.20-r3","3.10.20-r4","3.10.20-r5","3.10.20-r6","3.10.20-r7","3.10.20-r8","3.10.20-r9","3.10.21-r1","3.10.21-r2","3.10.22-r0","3.10.22-r1","3.10.22-r2","3.10.22-r3","3.10.22-r4","3.10.22-r5","3.10.22-r6","3.10.22-r7","3.10.22-r8"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ffmn-pnov-buz7-5qr4.json"}},{"package":{"name":"python-3.11","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/python-3.11"},"versions":["3.11.14-r0","3.11.15-r0","3.11.15-r1","3.11.15-r10","3.11.15-r11","3.11.15-r12","3.11.15-r13","3.11.15-r2","3.11.15-r3","3.11.15-r4","3.11.15-r5","3.11.15-r6","3.11.15-r7","3.11.15-r8","3.11.15-r9","3.11.16-r1","3.11.16-r2","3.11.17-r0","3.11.17-r1","3.11.18-r0","3.11.18-r1","3.11.18-r2","3.11.18-r3","3.11.18-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ffmn-pnov-buz7-5qr4.json"}},{"package":{"name":"python-3.12","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/python-3.12"},"versions":["3.12.12-r0","3.12.13-r0","3.12.13-r1","3.12.13-r10","3.12.13-r11","3.12.13-r12","3.12.13-r13","3.12.13-r2","3.12.13-r3","3.12.13-r4","3.12.13-r5","3.12.13-r6","3.12.13-r7","3.12.13-r8","3.12.13-r9","3.12.14-r1","3.12.14-r2","3.12.15-r0","3.12.15-r1","3.12.16-r0","3.12.16-r1","3.12.16-r2","3.12.16-r3","3.12.16-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ffmn-pnov-buz7-5qr4.json"}},{"package":{"name":"python-3.13","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/python-3.13"},"versions":["3.13.12-r0","3.13.12-r1","3.13.13-r1","3.13.13-r2","3.13.13-r3","3.13.13-r4","3.13.13-r5","3.13.13-r6","3.13.13-r7","3.13.13-r8","3.13.13-r9","3.13.14-r0","3.13.14-r1","3.13.14-r2","3.13.14-r3","3.13.15-r0","3.13.15-r1","3.13.15-r2","3.13.16-r0","3.13.16-r1","3.13.17-r0","3.13.18-r0","3.13.18-r1","3.13.18-r2","3.13.18-r3","3.13.18-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ffmn-pnov-buz7-5qr4.json"}},{"package":{"name":"python-3.14","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/python-3.14"},"versions":["3.14.10-r0","3.14.10-r1","3.14.10-r2","3.14.10-r3","3.14.10-r4","3.14.3-r0","3.14.3-r1","3.14.4-r1","3.14.4-r2","3.14.4-r3","3.14.4-r4","3.14.4-r5","3.14.4-r6","3.14.4-r7","3.14.5-r7","3.14.5-r8","3.14.5-r9","3.14.6-r10","3.14.6-r11","3.14.6-r12","3.14.6-r9","3.14.7-r0","3.14.7-r1","3.14.7-r2","3.14.8-r0","3.14.8-r1"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ffmn-pnov-buz7-5qr4.json"}},{"package":{"name":"python-3.15","ecosystem":"Docker Hardened Images:Alpine:3.23","purl":"pkg:apk/dhi/python-3.15"},"versions":["3.15.0-r0","3.15.2-r0","3.15.2-r1","3.15.2-r2","3.15.2-r3","3.15.2-r4"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-ffmn-pnov-buz7-5qr4.json"}}],"schema_version":"1.9.2"}