CVE catalog

CVE-2021-29921

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 base

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
6.88% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpypy3sid8.0.1+dfsg-1fixed
Debianpypy3forky8.0.1+dfsg-1fixed
Debianpypy3trixie7.3.19+dfsg-2fixed
Debianpypy3bookworm7.3.11+dfsg-2+deb12u3fixed
CpepythonNot reported3.8.12fixed
CpepythonNot reported3.9.5fixed
Cpecommunications_cloud_native_core_automated_test_suiteNot reportedNot reportedunknown
Cpecommunications_cloud_native_core_binding_support_functionNot reportedNot reportedunknown
Cpecommunications_cloud_native_core_network_slice_selection_functionNot reportedNot reportedunknown
CpegraalvmNot reportedNot reportedunknown
CpegraalvmNot reportedNot reportedunknown
Cpezfs_storage_appliance_kitNot reportedNot reportedunknown
Alpinepython33.153.9.5-r0fixed
Alpinepython33.163.9.5-r0fixed
Alpinepython33.173.9.5-r0fixed
Alpinepython33.183.9.5-r0fixed
Alpinepython33.193.9.5-r0fixed
Alpinepython33.203.9.5-r0fixed
Alpinepython33.213.9.5-r0fixed
Alpinepython33.223.9.5-r0fixed
Alpinepython33.233.9.5-r0fixed
Alpinepython33.243.9.5-r0fixed
Ubuntupython3.8pro3.8.0-3~18.04vulnerable
Ubuntupython3.8pro3.8.0-3~18.04.1vulnerable
Ubuntupython3.8pro3.8.0-3ubuntu1~18.04.2vulnerable
Ubuntupython3.8pro3.8.0-3ubuntu1~18.04.2+esm1vulnerable
Ubuntupython3.8pro3.8.0-3ubuntu1~18.04.2+esm2fixed
Ubuntupython3.820.043.8.0-1vulnerable
Ubuntupython3.820.043.8.0-2vulnerable
Ubuntupython3.820.043.8.0-3vulnerable
Ubuntupython3.820.043.8.0-4vulnerable
Ubuntupython3.820.043.8.0-5vulnerable
Ubuntupython3.820.043.8.1-2ubuntu3vulnerable
Ubuntupython3.820.043.8.2~rc1-1ubuntu1vulnerable
Ubuntupython3.820.043.8.2-1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1.1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1.2vulnerable
Ubuntupython3.820.043.8.5-1~20.04vulnerable
Ubuntupython3.820.043.8.5-1~20.04.2vulnerable
Ubuntupython3.820.043.8.5-1~20.04.3vulnerable
Ubuntupython3.820.043.8.10-0ubuntu1~20.04vulnerable
Ubuntupython3.820.043.8.10-0ubuntu1~20.04.1fixed
Ubuntupython3.920.043.9.0~rc1-1~20.04vulnerable
Ubuntupython3.920.043.9.0-5~20.04vulnerable
Ubuntupython3.920.043.9.5-3~20.04.1fixed
Ubuntupython3.820.043.8.0-1vulnerable
Ubuntupython3.820.043.8.0-2vulnerable
Ubuntupython3.820.043.8.0-3vulnerable
Ubuntupython3.820.043.8.0-4vulnerable
Ubuntupython3.820.043.8.0-5vulnerable
Ubuntupython3.820.043.8.1-2ubuntu3vulnerable
Ubuntupython3.820.043.8.2~rc1-1ubuntu1vulnerable
Ubuntupython3.820.043.8.2-1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1.1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1.2vulnerable
Ubuntupython3.820.043.8.5-1~20.04vulnerable
Ubuntupython3.820.043.8.5-1~20.04.2vulnerable
Ubuntupython3.820.043.8.5-1~20.04.3vulnerable
Ubuntupython3.820.043.8.10-0ubuntu1~20.04vulnerable
Ubuntupython3.820.043.8.10-0ubuntu1~20.04.1fixed
Ubuntupython3.820.043.8.0-1vulnerable
Ubuntupython3.820.043.8.0-2vulnerable
Ubuntupython3.820.043.8.0-3vulnerable
Ubuntupython3.820.043.8.0-4vulnerable
Ubuntupython3.820.043.8.0-5vulnerable
Ubuntupython3.820.043.8.1-2ubuntu3vulnerable
Ubuntupython3.820.043.8.2~rc1-1ubuntu1vulnerable
Ubuntupython3.820.043.8.2-1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1.1vulnerable
Ubuntupython3.820.043.8.2-1ubuntu1.2vulnerable
Ubuntupython3.820.043.8.5-1~20.04vulnerable
Ubuntupython3.820.043.8.5-1~20.04.2vulnerable
Ubuntupython3.820.043.8.5-1~20.04.3fixed
Susepython39linux enterprise module for basesystem 15 sp33.9.6-4.3.4fixed
Susepython39-corelinux enterprise module for basesystem 15 sp33.9.6-4.3.3fixed
Susepython39-corelinux enterprise module for development tools 15 sp33.9.6-4.3.3fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpypy3sourcesid7.3.8+dfsg-1not yet assignedNot reportedNot reported
Debianpypy3sourceforky7.3.8+dfsg-1not yet assignedNot reportedNot reported
Debianpypy3sourcetrixie7.3.8+dfsg-1not yet assignedNot reportedNot reported
Debianpypy3sourcebookworm7.3.8+dfsg-1not yet assignedNot reportedNot reported
CpepythoncpeNot reported3.8.12Not reportedNVD-CVE-2021-29921Not reported
CpepythoncpeNot reported3.9.5Not reportedNVD-CVE-2021-29921Not reported
Alpinepython3apk3.153.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.163.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.173.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.183.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.193.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.203.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.213.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.223.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.233.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Alpinepython3apk3.243.9.5-r0Not reportedALPINE-CVE-2021-29921Not reported
Ubuntupython3.8debpro3.8.0-3ubuntu1~18.04.2+esm2Not reportedUBUNTU-CVE-2021-29921Not reported
Ubuntupython3.8deb20.043.8.10-0ubuntu1~20.04.1Not reportedUBUNTU-CVE-2021-29921Not reported
Ubuntupython3.9deb20.043.9.5-3~20.04.1Not reportedUBUNTU-CVE-2021-29921Not reported
Ubuntupython3.8deb20.043.8.10-0ubuntu1~20.04.1Not reportedUSN-4973-2Not reported
Ubuntupython3.8deb20.043.8.5-1~20.04.3Not reportedUSN-4973-1Not reported
Susepython39rpmlinux enterprise module for basesystem 15 sp33.9.6-4.3.4Not reportedSUSE-SU-2021:2940-1Not reported
Susepython39-corerpmlinux enterprise module for basesystem 15 sp33.9.6-4.3.3Not reportedSUSE-SU-2021:2940-1Not reported
Susepython39-corerpmlinux enterprise module for development tools 15 sp33.9.6-4.3.3Not reportedSUSE-SU-2021:2940-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [pypy3]Fixed
    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

  • [pypy3-dev]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

  • [pypy3-doc]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

  • [pypy3-lib]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

  • Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

  • [pypy3-tk]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · amd64 · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · arm64 · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

  • [pypy3-venv]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

    • 7.3.11+dfsg-2+deb12u3 · all · bookworm

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · bookworm; nvd · pypy3 · debian · 12

[Debian 13 (Trixie)]

  • [pypy3]Fixed
    Details (2)
    • 7.3.19+dfsg-2 · amd64 · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · arm64 · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

  • [pypy3-dev]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

  • [pypy3-doc]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

  • [pypy3-lib]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · amd64 · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · arm64 · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

  • Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

  • [pypy3-tk]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · amd64 · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · arm64 · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

  • [pypy3-venv]Fixed

    Source package: [pypy3]

    Details (2)
    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

    • 7.3.19+dfsg-2 · all · trixie

      Fixed · Fixed: 7.3.8+dfsg-1

      nvd · pypy3 · debian · 13

Observed:

References