Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2021-4456
PUBLISHED
More InfoOfficial Page
Assigner-CPANSec
Assigner Org ID-9b29abf9-4ab0-4765-b253-1875cd9b441e
View Known Exploited Vulnerability (KEV) details
Published At-27 Feb, 2026 | 00:16
Updated At-27 Feb, 2026 | 16:53
Rejected At-
▼CVE Numbering Authority (CNA)
Net::CIDR versions before 0.24 for Perl mishandle leading zeros in IP CIDR addresses, which may have unspecified impact

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.

Affected Products
Vendor
MRSAM
Product
Net::CIDR
Collection URL
https://cpan.org/modules
Package Name
Net-CIDR
Repo
https://github.com/svarshavchik/Net-CIDR
Program Routines
  • addr2cidr
  • cidrlookup
Default Status
unaffected
Versions
Affected
  • From 0 before 0.24 (custom)
Problem Types
TypeCWE IDDescription
CWECWE-704CWE-704 Incorrect Type Conversion or Cast
Type: CWE
CWE ID: CWE-704
Description: CWE-704 Incorrect Type Conversion or Cast
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Use the `cidrvalidate` function on untrusted input before passing to the affected functions or upgrade to version 0.24 or later

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/
related
https://github.com/svarshavchik/Net-CIDR/commit/e3648c6bc6bdd018f90cca4149c467017d42bd10
patch
https://metacpan.org/dist/Net-CIDR/changes
release-notes
Hyperlink: https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/
Resource:
related
Hyperlink: https://github.com/svarshavchik/Net-CIDR/commit/e3648c6bc6bdd018f90cca4149c467017d42bd10
Resource:
patch
Hyperlink: https://metacpan.org/dist/Net-CIDR/changes
Resource:
release-notes
▼Authorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
3.16.5MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Version: 3.1
Base score: 6.5
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Details not found