CVE-2021-28918
CRITICAL 9.1CVSS 3.1Improper 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.
- Published
- 1 Apr 2021
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20CWE-704
- Also known as
- CVE-2021-29418GHSA-4c7m-wxvm-r7gcGHSA-pch5-whg9-qr2r
- Sources
- NVDJSONOSV GHSA-4c7m-wxvm-r7gcJSONOSV GHSA-pch5-whg9-qr2rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | netmask_project | netmaskcpe:2.3:a:netmask_project:netmask:*:*:*:*:*:node.js:*:* |
<= 1.0.6 | |
| OSV | npm | netmask | < 1.1.0 | 1.1.0 |
| OSV | npm | netmask | < 2.0.1 | 2.0.1 |
References
- https://github.com/advisories/GHSA-pch5-whg9-qr2r · Third Party Advisory, ADVISORY
- https://github.com/rs/node-netmask · Third Party Advisory, WEB
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md · Exploit, Third Party Advisory, WEB
- https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects/ · Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20210528-0010/ · Third Party Advisory, WEB
- https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications/ · Exploit, Press/Media Coverage, Third Party Advisory, WEB
- https://www.npmjs.com/package/netmask · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-28918 · ADVISORY
- https://github.com/rs/node-netmask/blob/98294cb20695f2c6c36219a4fbcd4744fb8d0682/CHANGELOG.md#v110-mar-18-2021 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-29418 · ADVISORY
- https://github.com/rs/node-netmask/commit/3f19a056c4eb808ea4a29f234274c67bc5a848f4 · WEB
- https://security.netapp.com/advisory/ntap-20210604-0001 · WEB
- https://sick.codes/sick-2021-011 · WEB
- https://sick.codes/universal-netmask-npm-package-used-by-270000-projects-vulnerable-to-octal-input-data-server-side-request-forgery-remote-file-inclusion-local-file-inclusion-and-more-cve-2021-28918 · WEB
- https://vuln.ryotak.me/advisories/6 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 1 Apr 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Apr 2021)