Advisory

DEBIAN-CVE-2021-4456

Also known as: CVE-2021-4456

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Dates

Published
2026-02-27 01:16 UTC
Modified
2026-10-23 18:05 UTC

Affected packages and fixes

libnet-cidr-perl

Debian packages (deb) · Debian 12

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

libnet-cidr-perl

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 0.25-1 (ecosystem)

Fixed versions

0.25-1

Fix

  • Fixed version 0.25-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libnet-cidr-perl

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 0.25-1 (ecosystem)

Fixed versions

0.25-1

Fix

  • Fixed version 0.25-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences