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)
ReferencesDLA-3980-1, DSA-5759-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python2.7 (PTS)bullseye2.7.18-8+deb11u1fixed
python3.11 (PTS)bookworm3.11.2-6+deb12u4fixed
bookworm (security)3.11.2-6+deb12u3fixed
python3.12 (PTS)sid, trixie3.12.8-3fixed
python3.13 (PTS)sid, trixie3.13.1-2fixed
python3.9 (PTS)bullseye3.9.2-1vulnerable
bullseye (security)3.9.2-1+deb11u2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
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.7source(unstable)(unfixed)
python3.9sourcebullseye3.9.2-1+deb11u2DLA-3980-1
python3.9source(unstable)(unfixed)

Notes

- python3.13 <not-affected> (Fixed before initial upload to Debian unstable)
- 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)

Search for package or bug name: Reporting problems