CVE-2021-4456

libnet-cidr-perl: Net::CIDR versions before 0.24 for Perl mishandle leading zeros in IP CIDR addresses, which may have unspecified impact

CVE-2021-4456 is fixed in libnet-cidr-perl on 1 platform, first by libnet-cidr-perl 0.18-1ubuntu0.1~esm2, released February 26, 2026. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
6.5
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0037
31st percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
libnet-cidr-perl · Debian 13.5 (trixie) 0.25-1 DEBIAN-CVE-2021-4456 Feb 27, 2026
libnet-cidr-perl · Debian 14 0.25-1 DEBIAN-CVE-2021-4456 Feb 27, 2026
libnet-cidr-perl · Ubuntu 18.04.6 LTS (bionic) 0.18-1ubuntu0.1~esm2 libnet-cidr-perl 0.18-1ubuntu0.1~esm2 Feb 26, 2026
libnet-cidr-perl · Ubuntu 20.04 LTS (focal) 0.20-1ubuntu0.1~esm2 libnet-cidr-perl 0.20-1ubuntu0.1~esm2 Feb 26, 2026
libnet-cidr-perl · Ubuntu 22.04.1 LTS (jammy) 0.21-1ubuntu0.2 libnet-cidr-perl 0.21-1ubuntu0.2 Feb 26, 2026
libnet-cidr-perl · Ubuntu 24.04.5 LTS (noble) 0.21-2ubuntu0.2 libnet-cidr-perl 0.21-2ubuntu0.2 Feb 26, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.