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

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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): 1.51%, higher than 75% of CVEs (2026-12-01)
- 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-28918
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

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 attackers to bypass access control that is based on IP addresses. NOTE: this issue exists because of an incomplete fix for CVE-2021-28918.

(As written by CVE List.)

## Affected

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

## 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 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/rs/node-netmask/commit/3f19a056c4eb808ea4a29f234274c67bc5a848f4> (patch, third-party-advisory, web)
- <https://vuln.ryotak.me/advisories/6> (third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210604-0001/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28918> (advisory)
- <https://github.com/advisories/GHSA-pch5-whg9-qr2r> (advisory)
- <https://github.com/rs/node-netmask> (web)
- <https://github.com/rs/node-netmask/blob/98294cb20695f2c6c36219a4fbcd4744fb8d0682/CHANGELOG.md#v110-mar-18-2021> (web)
- <https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md> (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://www.npmjs.com/package/netmask> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29418> (advisory)
- <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)

## Sources

- CVE List: [CVE-2021-29418](https://www.cve.org/CVERecord?id=CVE-2021-29418), 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-29418](https://nvd.nist.gov/vuln/detail/CVE-2021-29418), Public domain, modified 2026-06-17

---

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