Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-47154

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-47154
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:04 UTC · Revision 1

Source evidence

CVE-2021-47154

core-osv · Original source

Published 18 Mar 2024, 05:15 UTC

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.

osv:CVE-2021-47154
Complete source record
{
  "id": "a0ca039fa831dde731e34a1e41180da0bcdb277c896938ecac474277d35f5090",
  "url": "https://osv.dev/vulnerability/CVE-2021-47154",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-47154",
    "summary": "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.",
    "evidence": "osv:CVE-2021-47154",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-47154",
      "aliases": [
        "CVE-2021-47154"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/stigtsp/net-cidr-lite",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "71aca53d2f2ad8c4058df7a80a01f599bb6118f0"
                },
                {
                  "fixed": "23b6ff0590dc279521863a502e890ef19a5a76fc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.22"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "23b6ff0590dc279521863a502e890ef19a5a76fc"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.21"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47154.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:11.621269108Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2024/03/msg00023.html",
        "https://metacpan.org/dist/Net-CIDR-Lite/changes",
        "https://metacpan.org/pod/Net::CIDR::Lite",
        "https://github.com/stigtsp/Net-CIDR-Lite/commit/23b6ff0590dc279521863a502e890ef19a5a76fc",
        "https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-47154",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387041,
  "published_at": "2024-03-18T05:15:06.14+00:00"
}