et::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.
| Link | Resource |
|---|---|
| https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/ | Third Party Advisory |
| https://github.com/svarshavchik/Net-CIDR/commit/e3648c6bc6bdd018f90cca4149c467017d42bd10 | Patch |
| https://metacpan.org/dist/Net-CIDR/changes | Release Notes |
03 Mar 2026, 20:25
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Mrsam net\
Mrsam |
|
| References | () https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/ - Third Party Advisory | |
| References | () https://github.com/svarshavchik/Net-CIDR/commit/e3648c6bc6bdd018f90cca4149c467017d42bd10 - Patch | |
| References | () https://metacpan.org/dist/Net-CIDR/changes - Release Notes | |
| CPE | cpe:2.3:a:mrsam:net\:\:cidr:*:*:*:*:*:perl:*:* |
27 Feb 2026, 17:16
| Type | Values Removed | Values Added |
|---|---|---|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 6.5 |
27 Feb 2026, 14:06
| Type | Values Removed | Values Added |
|---|---|---|
| Summary |
|
27 Feb 2026, 01:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Published : 2026-02-27 01:16
Updated : 2026-03-03 20:25
NVD link : CVE-2021-4456
Mitre link : CVE-2021-4456
CVE.ORG link : CVE-2021-4456
JSON object : View
Incorrect Type Conversion or Cast