# CVE-2021-28918: Improper parsing of octal bytes in netmask

- Severity: Critical 9.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 15.2%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2021-03-29T21:32:05.000Z
- Modified: 2026-09-10T03:49:26.521Z
- Also known as: GHSA-4c7m-wxvm-r7gc, GHSA-pch5-whg9-qr2r
- Related: CVE-2021-29418
- Weaknesses: CWE-20, CWE-704
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- netmask (npm): before 1.1.0; before 2.0.1
- netmask_project netmask: up to 1.0.6

## Every score

- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:P/A:N`

## References

- <https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications/> (exploit, press/media-coverage, third-party-advisory)
- <https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md> (exploit, third-party-advisory, web)
- <https://www.npmjs.com/package/netmask> (product, third-party-advisory, web)
- <https://github.com/rs/node-netmask> (third-party-advisory, web)
- <https://github.com/advisories/GHSA-pch5-whg9-qr2r> (advisory, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210528-0010/> (third-party-advisory)
- <https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects/> (third-party-advisory)
- <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://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects> (web)
- <https://security.netapp.com/advisory/ntap-20210528-0010> (web)
- <https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications> (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)

## Sources

- CVE List: [CVE-2021-28918](https://www.cve.org/CVERecord?id=CVE-2021-28918), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4c7m-wxvm-r7gc](https://github.com/advisories/GHSA-4c7m-wxvm-r7gc), CC-BY-4.0, modified 2026-09-10
- GitHub Advisory Database: [GHSA-pch5-whg9-qr2r](https://github.com/advisories/GHSA-pch5-whg9-qr2r), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-28918](https://nvd.nist.gov/vuln/detail/CVE-2021-28918), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-28918 · Whole record: https://cve.day/CVE-2021-28918.json · Rebuilt by cve.day 2026-11-25T22:58:00.542Z
