Security Advisories (1)
CVE-2021-47154 (2024-03-18)

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.

Changes for version 0.07 - 2001-10-31

  • Lifted some code from Array::IntSpan and tweaked it for my purposes to do a binary search if the (# of IP addresses)/(the
    • of ranges) is below some percentage (default 4%). The initial search setup is still O(n*log(n)) for the sort, but it can speed up subsequent searches for IP addresses. I haven't benchmarked any of this, so for you benchmark fanatics who use this module, let me know some stats, please :-)
  • Added binary search capability to N::C::L find method.
  • Fixed NCL::Span find method (never trust version 1 of this stuff).

Modules

Perl extension for merging IPv4 or IPv6 CIDR addresses

Provides