CVE & CISA-KEV Catalog

CVE-2021-4456

MEDIUM
6.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
libnet-cidr-perlDebian
Fixed in:0.25-1CVE-2021-4456
Fixed in:0.25-1CVE-2021-4456
libnet-cidr-perlUbuntu
Fixed in:0.17-1ubuntu0.14.04.1~esm2USN-8110-1
Fixed in:0.17-1ubuntu0.16.04.1~esm2USN-8110-1
Fixed in:0.18-1ubuntu0.1~esm2USN-8110-1
Fixed in:0.20-1ubuntu0.1~esm2USN-8110-1
Fixed in:0.21-1ubuntu0.2USN-8110-1
Fixed in:0.21-2ubuntu0.2USN-8110-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploit Intelligence

0.32%probability of exploitation in 30 days
24thpercentile

Low risk: more likely to be exploited than 24% of all known CVEs.

References

Third-Party Advisory1
Release Notes1
Embed a live status badge for CVE-2021-4456
CVE-2021-4456 severity badge

Markdown

[![CVE-2021-4456](https://tridentstack.com/cve/badge/CVE-2021-4456.svg)](https://tridentstack.com/cve/CVE-2021-4456)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-4456"><img src="https://tridentstack.com/cve/badge/CVE-2021-4456.svg" alt="CVE-2021-4456"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-03-03.