{"id":"UBUNTU-CVE-2021-29424","details":"The Net::Netmask module before 2.0000 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.","modified":"2026-05-20T16:04:55.060122581Z","published":"2021-04-06T16:15:00Z","upstream":["CVE-2021-29424"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-29424"},{"type":"REPORT","url":"https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/"},{"type":"REPORT","url":"https://metacpan.org/changes/distribution/Net-Netmask#L11-22"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-29424"}],"affected":[{"package":{"name":"libnet-netmask-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libnet-netmask-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9021-1","1.9022-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnet-netmask-perl","binary_version":"1.9022-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnetwork-ipv4addr-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libnetwork-ipv4addr-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.ds-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetwork-ipv4addr-perl","binary_version":"0.10.ds-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnet-netmask-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libnet-netmask-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9022-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnet-netmask-perl","binary_version":"1.9022-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnetwork-ipv4addr-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libnetwork-ipv4addr-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.ds-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetwork-ipv4addr-perl","binary_version":"0.10.ds-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnet-netmask-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libnet-netmask-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9104-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnet-netmask-perl","binary_version":"1.9104-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnetwork-ipv4addr-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libnetwork-ipv4addr-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.ds-3"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.ds-3","binary_name":"libnetwork-ipv4addr-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnetwork-ipv4addr-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libnetwork-ipv4addr-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.ds-3.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetwork-ipv4addr-perl","binary_version":"0.10.ds-3.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnetwork-ipv4addr-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libnetwork-ipv4addr-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.ds-4"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.ds-4","binary_name":"libnetwork-ipv4addr-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnetwork-ipv4addr-perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libnetwork-ipv4addr-perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.ds-4"],"ecosystem_specific":{"binaries":[{"binary_name":"libnetwork-ipv4addr-perl","binary_version":"0.10.ds-4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}},{"package":{"name":"libnetwork-ipv4addr-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libnetwork-ipv4addr-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.10.ds-4"],"ecosystem_specific":{"binaries":[{"binary_version":"0.10.ds-4","binary_name":"libnetwork-ipv4addr-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-29424.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}