CVE-2021-4456
published medium CVSS 3.1 · 6.5Net::CIDR versions before 0.24 for Perl mishandle leading zeros in IP CIDR addresses, which may have unspecified impact
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MRSAM | — | Net-CIDRNet::CIDR · 0 to < 0.24 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-Net-CIDRnoarch | Advisory build | 0.270.0-bp160.1.1 | OPENSUSE-SU-2026:20773-1 |
| Ubuntu | bionic | libnet-cidr-perl | Advisory build | 0.18-1ubuntu0.1~esm2 | USN-8110-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDRaarch64 | Advisory build | 0.270.0-2.1 | OPENSUSE-SU-2026:10756-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDRppc64le | Advisory build | 0.270.0-2.1 | OPENSUSE-SU-2026:10756-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDRs390x | Advisory build | 0.270.0-2.1 | OPENSUSE-SU-2026:10756-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-CIDRx86_64 | Advisory build | 0.270.0-2.1 | OPENSUSE-SU-2026:10756-1 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | libnet-cidr-perl | Advisory build | 0.20-1ubuntu0.1~esm2 | USN-8110-1 |
| Ubuntu | jammy | libnet-cidr-perl | Advisory build | 0.21-1ubuntu0.2 | USN-8110-1 |
| Ubuntu | noble | libnet-cidr-perl | Advisory build | 0.21-2ubuntu0.2 | USN-8110-1 |
| Ubuntu | trusty | libnet-cidr-perl | Advisory build | 0.17-1ubuntu0.14.04.1~esm2 | USN-8110-1 |
| Ubuntu | xenial | libnet-cidr-perl | Advisory build | 0.17-1ubuntu0.16.04.1~esm2 | USN-8110-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MRSAM | Net::CIDR | 0 to < 0.24 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-704 CWE-704 Incorrect Type Conversion or Cast
References
3Provider assertions
2CPANSec · cna
Net::CIDR versions before 0.24 for Perl mishandle leading zeros in IP CIDR addresses, which may have unspecified impact
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8896897e03c730c12ffd34d40b363cde5652d459dd9a8fd421e459cfc1d86cbb
- Ingested
- 23 Sep 2026, 07:57:25 UTC
- Source record
- Official CVE record