CVE-2021-47154
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero...
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.3
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
- Record
CVE-2021-47154- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
EUVDEUVD-2021-33802
6.3
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
- Record
EUVD-2021-33802- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gpvh-42rv-p6wg
6.3
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero...
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
- Record
GHSA-gpvh-42rv-p6wg- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
NVD
6.3
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
- Record
CVE-2021-47154- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSV
6.3
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
- Record
CVE-2021-47154- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-47154
6.3
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
- Record
DEBIAN-CVE-2021-47154- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
Show 7 moreShow less
OSVOESA-2024-1303
6.3
perl-Net-CIDR-Lite security update
Faster alternative to Net::CIDR when merging a large number of CIDR address ranges. Works for IPv4 and IPv6 addresses.
Security Fix(es):
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.(CVE-2021-47154)
- Record
OESA-2024-1303- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVOESA-2024-1304
6.3
perl-Net-CIDR-Lite security update
Faster alternative to Net::CIDR when merging a large number of CIDR address ranges. Works for IPv4 and IPv6 addresses.
Security Fix(es):
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.(CVE-2021-47154)
- Record
OESA-2024-1304- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVOESA-2024-1305
6.3
perl-Net-CIDR-Lite security update
Faster alternative to Net::CIDR when merging a large number of CIDR address ranges. Works for IPv4 and IPv6 addresses.
Security Fix(es):
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.(CVE-2021-47154)
- Record
OESA-2024-1305- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-47154
6.3
The Net::CIDR::Lite module before 0.22 for Perl does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses.
- Record
UBUNTU-CVE-2021-47154- CVSS 3.1
- 6.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVSUSE-SU-2024:1256-1 No score
Security update for perl-Net-CIDR-Lite
This update for perl-Net-CIDR-Lite fixes the following issues:
- CVE-2021-47154: Fixed leading zeroes in IPv4 octets may allow attackers to bypass certain access controls (bsc#1221564).
- Record
SUSE-SU-2024:1256-1- Updated
- 2026-11-02
OSVUSN-6712-1 No score
libnet-cidr-lite-perl vulnerability
It was discovered that Net::CIDR::Lite incorrectly handled extra zero characters at the beginning of IP address strings. A remote attacker could possibly use this issue to bypass access controls.
- Record
USN-6712-1- Updated
- 2026-11-02
OSVUSN-8406-1 No score
libnet-cidr-lite-perl vulnerabilities
Dave Rolsky discovered that Net::CIDR::Lite did not properly handle extraneous zero characters at the beginning of an IP address string. A remote attacker could possibly use this issue to bypass access controls that are based on IP addresses. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2021-47154)
It was discovered that Net::CIDR::Lite did not properly validate the IPv6 group count when handling uncompressed IPv6 addresses. A remote attacker could possibly use this issue to bypass access controls. (CVE-2026-40198)
It was discovered that Net::CIDR::Lite mishandled IPv4 mapped IPv6 addresses. A remote attacker could possibly use this issue to bypass access controls that are based on IP addresses. (CVE-2026-40199)
- Record
USN-8406-1- Updated
- 2026-11-02
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libnet-cidr-lite-perlDebian:12 |
before 0.22-1 | 0.22-1 |
libnet-cidr-lite-perlDebian:13 |
before 0.22-1 | 0.22-1 |
libnet-cidr-lite-perlDebian:14 |
before 0.22-1 | 0.22-1 |
libnet-cidr-lite-perlDebian:10 |
before 0.21-2+debu10u1, plus listed versions 0.21-2 |
0.21-2+debu10u1 |
perl-Net-CIDR-LiteopenEuler:20.03-LTS-SP1 |
before 0.21-24.oe1 | 0.21-24.oe1 |
perl-Net-CIDR-LiteopenEuler:20.03-LTS-SP4 |
before 0.21-24.oe2003sp4 | 0.21-24.oe2003sp4 |
perl-Net-CIDR-LiteopenEuler:22.03-LTS |
before 0.21-24.oe2203 | 0.21-24.oe2203 |
perl-Net-CIDR-LiteSUSE:Linux Enterprise Module for Development Tools 15 SP5 |
before 0.21-150100.6.3.1 | 0.21-150100.6.3.1 |
perl-Net-CIDR-LiteopenSUSE:Leap 15.5 |
before 0.21-150100.6.3.1 | 0.21-150100.6.3.1 |
libnet-cidr-lite-perlUbuntu:Pro:16.04:LTS |
before 0.21-1ubuntu0.16.04.1~esm1, plus listed versions 0.21-1 |
0.21-1ubuntu0.16.04.1~esm1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libnet-cidr-lite-perlUbuntu:Pro:18.04:LTS |
before 0.21-1ubuntu0.18.04.1~esm1, plus listed versions 0.21-1 |
0.21-1ubuntu0.18.04.1~esm1 |
libnet-cidr-lite-perlUbuntu:20.04:LTS |
before 0.21-2ubuntu0.1, plus listed versions 0.21-2 |
0.21-2ubuntu0.1 |
libnet-cidr-lite-perlUbuntu:Pro:16.04:LTS From an advisory covering 3 CVEs |
before 0.21-1ubuntu0.16.04.1~esm1, plus listed versions 0.21-1 |
0.21-1ubuntu0.16.04.1~esm1 |
libnet-cidr-lite-perlUbuntu:Pro:18.04:LTS From an advisory covering 3 CVEs |
before 0.21-1ubuntu0.18.04.1~esm1, plus listed versions 0.21-1 |
0.21-1ubuntu0.18.04.1~esm1 |
libnet-cidr-lite-perlUbuntu:Pro:20.04:LTS From an advisory covering 3 CVEs |
before 0.21-2ubuntu0.1+esm1, plus listed versions 0.21-20.21-2ubuntu0.1 |
0.21-2ubuntu0.1+esm1 |
libnet-cidr-lite-perlUbuntu:22.04:LTS From an advisory covering 3 CVEs |
before 0.22-1ubuntu0.1, plus listed versions 0.22-1 |
0.22-1ubuntu0.1 |
libnet-cidr-lite-perlUbuntu:24.04:LTS From an advisory covering 3 CVEs |
before 0.22-2ubuntu0.24.04.1, plus listed versions 0.22-2 |
0.22-2ubuntu0.24.04.1 |
libnet-cidr-lite-perlUbuntu:25.10 From an advisory covering 3 CVEs |
before 0.22-2ubuntu0.25.10.1, plus listed versions 0.22-2 |
0.22-2ubuntu0.25.10.1 |
libnet-cidr-lite-perlUbuntu:26.04:LTS From an advisory covering 3 CVEs |
before 0.22-2ubuntu0.26.04.1, plus listed versions 0.22-2 |
0.22-2ubuntu0.26.04.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-47154 is a medium vulnerability (CVSS 6.3) in libnet-cidr-lite-perl, published March 18, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.49%, the 42nd percentile. Fixed in libnet-cidr-lite-perl 0.22-1.
References
blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros
metacpan.org/pod/Net::CIDR::Lite
github.com/stigtsp/Net-CIDR-Lite/commit/23b6ff0590dc279521863a502e890ef19a5a76fc
metacpan.org/dist/Net-CIDR-Lite/changes
lists.debian.org/debian-lts-announce/2024/03/msg00023.html
nvd.nist.gov/vuln/detail/CVE-2021-47154
Show 14 moreShow less
github.com/advisories/GHSA-gpvh-42rv-p6wg
security-tracker.debian.org/tracker/CVE-2021-47154
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1303
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1304
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1305
suse.com/support/update/announcement/2024/suse-su-20241256-1
bugzilla.suse.com/1221564
suse.com/security/cve/CVE-2021-47154
ubuntu.com/security/CVE-2021-47154
ubuntu.com/security/notices/USN-6712-1
cve.org/CVERecord?id=CVE-2021-47154
ubuntu.com/security/notices/USN-8406-1
ubuntu.com/security/CVE-2026-40198
ubuntu.com/security/CVE-2026-40199