Bug 2443232 (CVE-2021-4456) - CVE-2021-4456 Net-CIDR: mishandling of leading zeros in IP CIDR addresses
Summary: CVE-2021-4456 Net-CIDR: mishandling of leading zeros in IP CIDR addresses
Keywords:
Status: NEW
Alias: CVE-2021-4456
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2443386 2443387
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-02-27 01:02 UTC by OSIDB Bzimport
Modified: 2026-02-27 18:40 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-02-27 01:02:49 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.