Description
The Data::Validate::IP module through 0.29 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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libdata-validate-ip-perl | 0.30-1 | — |
| Debian 13 | libdata-validate-ip-perl | 0.30-1 | — |
| Debian 12 | libdata-validate-ip-perl | 0.30-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libdata-validate-ip-perl | No fix yet | — |
| Ubuntu 18.04 LTS | libdata-validate-ip-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libdata-validate-ip-perl | No fix yet | — |
References
- https://blog.urth.org/2021/03/29/security-issues-in-perl-ip-address-distros/
- https://github.com/houseabsolute/Data-Validate-IP/commit/3bba13c819d616514a75e089badd75002fd4f14e
- https://sick.codes/sick-2021-018/
- https://github.com/houseabsolute/Data-Validate-IP
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-018.md
- https://security.netapp.com/advisory/ntap-20210604-0002/