JLSEC-2026-1608
JSON

9.8critical

In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string.

Severity
9.8critical CVSS:3.1 by Julia Security Advisories
Published
Last changed

Description

In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string. This (in some situations) allows attackers to bypass access control that is based on IP addresses.

Affected

Product or packageVersionsReported by
Python_jll (Julia)before 3.10.7+0Julia Security Advisories

All scores

Julia Security AdvisoriesNot scored CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Julia Security Advisories9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

https://bugs.python.org/issue36384web
https://docs.python.org/3/library/ipaddress.htmlweb
https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rstweb
https://github.com/python/cpython/pull/12577web
https://github.com/python/cpython/pull/25099web
https://github.com/sickcodesweb
https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.mdweb
https://lists.debian.org/debian-lts-announce/2024/12/msg00000.htmlweb
https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.htmlweb
https://security.gentoo.org/glsa/202305-02web
https://security.netapp.com/advisory/ntap-20210622-0003/web
https://sick.codes/sick-2021-014web

Related

Sources

SourceRecordLicence
Julia Security AdvisoriesJLSEC-2026-1608 changed 2026-12-01CC-BY-4.0