Improper parsing of octal bytes in netmask
Improper input validation of octal strings in netmask npm package v1.0.6 and below allows unauthenticated remote attackers to perform indeterminate SSRF, RFI, and LFI attacks on many of the dependent packages. A remote unauthenticated attacker can bypass packages relying on netmask to filter IPs and reach critical VPN or LAN hosts. :exclamation: NOTE: The fix for this issue was incomplete. A subsequent fix was made in version `2.0.1` which was assigned [CVE-2021-29418 / GHSA-pch5-whg9-qr2r](https://github.com/advisories/GHSA-pch5-whg9-qr2r). For complete protection from this vulnerability an upgrade to version 2.0.1 or later is recommended.
describes (2)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2021-28918US | critical9.1 | — | ||
Improper input validation of octal strings in netmask npm package v1.0.6 and below allows unauthenticated remote attackers to perform indeterminate SSRF, RFI, and LFI attacks on ma… | ||||
| CVE-2021-29418US | medium5.3 | — | ||
The netmask package before 2.0.1 for Node.js mishandles certain unexpected characters in an IP address string, such as an octal digit of 9. This (in some situations) allows attacke… | ||||
references
External citations — patches, advisories, analysis.
- https://github.com/advisories/GHSA-pch5-whg9-qr2rADVISORY
- https://github.com/rs/node-netmaskWEB
- https://github.com/rs/node-netmask/blob/98294cb20695f2c6c36219a4fbcd4744fb8d0682/CHANGELOG.md#v110-mar-18-2021WEB
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.mdWEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-28918ADVISORY
- https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projectsWEB
- https://security.netapp.com/advisory/ntap-20210528-0010WEB
- https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applicationsWEB
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan