# JLSEC-2026-1608: In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string.

- Severity: Critical 9.8 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:11:45.475Z
- Modified: 2026-12-01T15:15:03.917Z
- Related: CVE-2021-29921

## 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.

(As written by Julia Security Advisories.)

## Affected

- Python_jll (Julia): before 3.10.7+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Julia Security Advisories: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://bugs.python.org/issue36384> (web)
- <https://docs.python.org/3/library/ipaddress.html> (web)
- <https://github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a4.rst> (web)
- <https://github.com/python/cpython/pull/12577> (web)
- <https://github.com/python/cpython/pull/25099> (web)
- <https://github.com/sickcodes> (web)
- <https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md> (web)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html> (web)
- <https://python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html> (web)
- <https://security.gentoo.org/glsa/202305-02> (web)
- <https://security.netapp.com/advisory/ntap-20210622-0003/> (web)
- <https://sick.codes/sick-2021-014> (web)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (web)
- <https://www.oracle.com/security-alerts/cpuapr2022.html> (web)
- <https://www.oracle.com/security-alerts/cpujan2022.html> (web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (web)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1608](https://osv.dev/vulnerability/JLSEC-2026-1608), CC-BY-4.0, modified 2026-12-01

---

Page: https://cve.day/JLSEC-2026-1608 · Whole record: https://cve.day/JLSEC-2026-1608.json · Rebuilt by cve.day 2026-12-01T15:27:05.907Z
