cve.bz

CVE-2021-4456 mrsam net\: Incorrect Type Conversion or Cast

6.5 mediumEPSS 0.4%Fix available

Medium (6.5) in mrsam net\. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-02-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-704 Incorrect Type Conversion or Cast
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-4456 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4456?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4456?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4456 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • mrsam:net\

Versions

From the CNA's record in the CVE List.

ProductAffected
MRSAM Net::CIDRbefore 0.24

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libnet-cidr-perlno fix listedDEBIAN-CVE-2021-4456
Debian13, 14libnet-cidr-perl0.25-1DEBIAN-CVE-2021-4456
Ubuntu22.04:LTSlibnet-cidr-perl0.21-1ubuntu0.2UBUNTU-CVE-2021-4456 USN-8110-1
Ubuntu24.04:LTSlibnet-cidr-perl0.21-2ubuntu0.2UBUNTU-CVE-2021-4456 USN-8110-1
UbuntuPro:14.04:LTSlibnet-cidr-perl0.17-1ubuntu0.14.04.1~esm2UBUNTU-CVE-2021-4456 USN-8110-1
UbuntuPro:16.04:LTSlibnet-cidr-perl0.17-1ubuntu0.16.04.1~esm2UBUNTU-CVE-2021-4456 USN-8110-1
UbuntuPro:18.04:LTSlibnet-cidr-perl0.18-1ubuntu0.1~esm2UBUNTU-CVE-2021-4456 USN-8110-1
UbuntuPro:20.04:LTSlibnet-cidr-perl0.20-1ubuntu0.1~esm2UBUNTU-CVE-2021-4456 USN-8110-1
openSUSETumbleweedperl-Net-CIDR0.270.0-2.1openSUSE-SU-2026:10756-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

References

Check your stackJSON