CVE-2021-4456
Last modified
CVE-2021-4456 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.32% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Mrsam | Net\ | < 0.24 | Cidr |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2021-4456?
How severe is CVE-2021-4456?
How do I fix CVE-2021-4456?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-44549Apache Sling Commons Messaging Mail provides a simple layer …7.4
- CVE-2021-4455The Wordpress Plugin Smart Product Review plugin for WordPre…9.8
- CVE-2021-44550An Incorrect Access Control vulnerability exists in CoreNLP …9.8
- CVE-2021-44554Thinfinity VirtualUI before 3.0 allows a malicious actor to …5.3
- CVE-2021-44556National Library of the Netherlands digger < 6697d1269d981e3…9.1
- CVE-2021-44557National Library of the Netherlands multiNER <= c0440948057a…9.1
- CVE-2021-44564A security vulnerability originally reported in the SYNC2101…8.1
- CVE-2021-44565A Cross Site Scripting (XSS) vulnerability exists in Rosario…5.4
- CVE-2021-44566A Cross Site Scripting (XSS) vulnerability exists in Rosario…5.4
- CVE-2021-44567An unauthenticated SQL Injection vulnerability exists in Ros…9.8
- CVE-2021-44568Two heap-overflow vulnerabilities exist in openSUSE/libsolv …6.5
- CVE-2021-44569Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
Are you affected by CVE-2021-4456?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
