CVE-2024-4032

NameCVE-2024-4032
DescriptionThe “ipaddress” module contained incorrect information about whether certain IPv4 and IPv6 addresses were designated as “globally reachable” or “private”. This affected the is_private and is_global properties of the ipaddress.IPv4Address, ipaddress.IPv4Network, ipaddress.IPv6Address, and ipaddress.IPv6Network classes, where values wouldn’t be returned in accordance with the latest information from the IANA Special-Purpose Address Registries. CPython 3.12.4 and 3.13.0a6 contain updated information from these registries and thus have the intended behavior.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-5759-1, ELA-1135-1, ELA-1137-1, ELA-1138-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypy (PTS)jessie2.4.0+dfsg-3fixed
stretch5.6.0+dfsg-4fixed
buster7.0.0+dfsg-3fixed
bullseye7.3.3+dfsg-2fixed
python2.7 (PTS)jessie, jessie (lts)2.7.9-2-ds1-1+deb8u12fixed
stretch (security)2.7.13-2+deb9u6fixed
stretch (lts), stretch2.7.13-2+deb9u9fixed
buster (security), buster, buster (lts)2.7.16-2+deb10u4fixed
bullseye2.7.18-8+deb11u1fixed
python3.11 (PTS)bookworm3.11.2-6+deb12u2vulnerable
bookworm (security)3.11.2-6+deb12u3fixed
python3.12 (PTS)trixie3.12.5-4fixed
sid3.12.6-1fixed
python3.13 (PTS)trixie3.13.0~rc1-4fixed
sid3.13.0~rc2-1fixed
python3.4 (PTS)jessie, jessie (lts)3.4.2-1+deb8u18fixed
python3.5 (PTS)stretch (security)3.5.3-1+deb9u5vulnerable
stretch (lts), stretch3.5.3-1+deb9u10fixed
python3.7 (PTS)buster, buster (lts)3.7.3-2+deb10u8fixed
buster (security)3.7.3-2+deb10u7vulnerable
python3.9 (PTS)bullseye3.9.2-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypysource(unstable)(not affected)
python2.7source(unstable)(not affected)
python3.11sourcebookworm3.11.2-6+deb12u3DSA-5759-1
python3.11source(unstable)(unfixed)
python3.12source(unstable)3.12.4-1
python3.13source(unstable)(not affected)
python3.4sourcejessie3.4.2-1+deb8u18ELA-1138-1
python3.4source(unstable)(unfixed)
python3.5sourcestretch3.5.3-1+deb9u10ELA-1137-1
python3.5source(unstable)(unfixed)
python3.7sourcebuster3.7.3-2+deb10u8ELA-1135-1
python3.7source(unstable)(unfixed)
python3.9source(unstable)(unfixed)

Notes

- python3.13 <not-affected> (Fixed before initial upload to Debian unstable)
[bullseye] - python3.9 <no-dsa> (Minor issue)
- python2.7 <not-affected> (ipaddress module added in 3.3)
https://github.com/advisories/GHSA-mh6q-v4mp-2cc7
https://github.com/python/cpython/issues/113171
https://github.com/python/cpython/pull/113179
https://github.com/python/cpython/commit/ba431579efdcbaed7a96f2ac4ea0775879a332fb (3.11.y-branch)
https://github.com/python/cpython/commit/22adf29da8d99933ffed8647d3e0726edd16f7f8 (3.9.y-branch)
- pypy <not-affected> (ipaddress module added in 3.3)

Search for package or bug name: Reporting problems