
CVE catalog
CVE-2021-4456
Net::CIDR versions before 0.24 for Perl mishandle leading zeros in IP CIDR addresses, which may have unspecified impact. The functions `addr2cidr` and `cidrlookup` may return leading zeros in a CIDR
- Severity
- High · CVSS 8.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.37% · Oct 25, 2026
Net::CIDR versions before 0.24 for Perl mishandle leading zeros in IP CIDR addresses, which may have unspecified impact. The functions `addr2cidr` and `cidrlookup` may return leading zeros in a CIDR string, which may in turn be parsed as octal numbers by subsequent users. In some cases an attacker may be able to leverage this to bypass access controls based on IP addresses. The documentation advises validating untrusted CIDR strings with the `cidrvalidate` function. However, this mitigation is optional and not enforced by default. In practice, users may call `addr2cidr` or `cidrlookup` with untrusted input and without validation, incorrectly assuming that this is safe.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libnet-cidr-perl | sid | 0.27-1 | fixed |
| Debian | libnet-cidr-perl | forky | 0.27-1 | fixed |
| Debian | libnet-cidr-perl | trixie | 0.25-1 | fixed |
| Debian | libnet-cidr-perl | bookworm | 0.21-2 | vulnerable |
| Cpe | libnet-cidr-perl | Not reported | Not reported | vulnerable |
| Cpe | libnet-cidr-perl | Not reported | 0.21-2ubuntu0.2 | fixed |
| Ubuntu | libnet-cidr-perl | pro | 0.20-1 | vulnerable |
| Ubuntu | libnet-cidr-perl | pro | 0.20-1ubuntu0.1~esm2 | fixed |
| Ubuntu | libnet-cidr-perl | 22.04 | 0.20-1 | vulnerable |
| Ubuntu | libnet-cidr-perl | 22.04 | 0.21-1 | vulnerable |
| Ubuntu | libnet-cidr-perl | 22.04 | 0.21-1ubuntu0.2 | fixed |
| Ubuntu | libnet-cidr-perl | 24.04 | 0.21-2 | vulnerable |
| Ubuntu | libnet-cidr-perl | 24.04 | 0.21-2ubuntu0.2 | fixed |
| Opensuse | perl-Net-CIDR | tumbleweed | 0.270.0-2.1 | fixed |
| Ubuntu | libnet-cidr-perl | pro | 0.20-1 | vulnerable |
| Ubuntu | libnet-cidr-perl | pro | 0.20-1ubuntu0.1~esm2 | fixed |
| Ubuntu | libnet-cidr-perl | 22.04 | 0.20-1 | vulnerable |
| Ubuntu | libnet-cidr-perl | 22.04 | 0.21-1 | vulnerable |
| Ubuntu | libnet-cidr-perl | 22.04 | 0.21-1ubuntu0.2 | fixed |
| Ubuntu | libnet-cidr-perl | 24.04 | 0.21-2 | vulnerable |
| Ubuntu | libnet-cidr-perl | 24.04 | 0.21-2ubuntu0.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libnet-cidr-perl | source | sid | 0.25-1 | not yet assigned | Not reported | Not reported |
| Debian | libnet-cidr-perl | source | forky | 0.25-1 | not yet assigned | Not reported | Not reported |
| Debian | libnet-cidr-perl | source | trixie | 0.25-1 | not yet assigned | Not reported | Not reported |
| Debian | libnet-cidr-perl | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | libnet-cidr-perl | cpe | Not reported | 0.21-2ubuntu0.2 | Not reported | Not reported | Not reported |
| Ubuntu | libnet-cidr-perl | deb | pro | 0.20-1ubuntu0.1~esm2 | Not reported | USN-8110-1 | Not reported |
| Ubuntu | libnet-cidr-perl | deb | 22.04 | 0.21-1ubuntu0.2 | Not reported | USN-8110-1 | Not reported |
| Ubuntu | libnet-cidr-perl | deb | 24.04 | 0.21-2ubuntu0.2 | Not reported | USN-8110-1 | Not reported |
| Opensuse | perl-Net-CIDR | rpm | tumbleweed | 0.270.0-2.1 | Not reported | OPENSUSE-SU-2026:10756-1 | Not reported |
| Ubuntu | libnet-cidr-perl | deb | pro | 0.20-1ubuntu0.1~esm2 | Not reported | UBUNTU-CVE-2021-4456 | Not reported |
| Ubuntu | libnet-cidr-perl | deb | 22.04 | 0.21-1ubuntu0.2 | Not reported | UBUNTU-CVE-2021-4456 | Not reported |
| Ubuntu | libnet-cidr-perl | deb | 24.04 | 0.21-2ubuntu0.2 | Not reported | UBUNTU-CVE-2021-4456 | Not reported |
Notes
[bookworm] libnet-cidr-perl: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libnet-cidr-perl]Affected
Details (2)
0.21-2· all · bookwormAffected
nvd · libnet-cidr-perl · debian · bookworm; nvd · libnet-cidr-perl · debian · 12
0.21-2· all · bookwormAffected
nvd · libnet-cidr-perl · debian · bookworm; nvd · libnet-cidr-perl · debian · 12
[Debian 13 (Trixie)]
- [libnet-cidr-perl]Fixed
Details (2)
0.25-1· all · trixieFixed · Fixed:
0.25-1nvd · libnet-cidr-perl · debian · 13
0.25-1· all · trixieFixed · Fixed:
0.25-1nvd · libnet-cidr-perl · debian · 13
[openSUSE Tumbleweed]
- [perl-Net-CIDR]Fixed
Source package: [perl-Net-CIDR]
Details (1)
0.270.0-2.3· noarch · tumbleweedFixed · Fixed:
0.270.0-2.1nvd · perl-Net-CIDR · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10756-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2021-4456]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-4456]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-4456]
- [https://osv.dev/vulnerability/USN-8110-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10756-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-4456]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-4456.json]
- [https://ubuntu.com/security/notices/USN-8110-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-0688.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]