{"id":"CVE-2021-29418","aliases":["CVE-2021-29418","GHSA-4c7m-wxvm-r7gc","GHSA-pch5-whg9-qr2r"],"related":["CVE-2021-28918"],"kind":"vulnerability","state":"published","title":"Improper parsing of octal bytes in netmask","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n: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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete netmask versiones anteriores a 2.0.1 para Node.js, maneja inapropiadamente determinados caracteres inesperados en una cadena de direcciones IP, como un dígito octal de 9. Esto (en algunas situaciones) permite a atacantes omitir el control de acceso que es basado en direcciones IP.&#xa0;NOTA: este problema se presenta debido a una corrección incompleta para el CVE-2021-28918.","source":"nvd"}],"published":"2021-03-29T21:32:05.000Z","modified":"2026-09-10T03:49:26.521Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"npm","package":"netmask","purl":"pkg:npm/netmask","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"npm","package":"netmask","purl":"pkg:npm/netmask","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.0.1"}],"vendor":"netmask_project","product":"netmask","cpe":"cpe:2.3:a:netmask_project:netmask:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rs/node-netmask/commit/3f19a056c4eb808ea4a29f234274c67bc5a848f4","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://vuln.ryotak.me/advisories/6","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20210604-0001/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28918","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-pch5-whg9-qr2r","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rs/node-netmask","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rs/node-netmask/blob/98294cb20695f2c6c36219a4fbcd4744fb8d0682/CHANGELOG.md#v110-mar-18-2021","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md","tags":["web"],"sources":["ghsa"]},{"url":"https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0010","tags":["web"],"sources":["ghsa"]},{"url":"https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/netmask","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29418","tags":["advisory"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210604-0001","tags":["web"],"sources":["ghsa"]},{"url":"https://sick.codes/sick-2021-011","tags":["web"],"sources":["ghsa"]},{"url":"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","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29418","url":"https://www.cve.org/CVERecord?id=CVE-2021-29418","licence":"CVE Terms of Use","modified":"2024-08-03T22:02:51.874Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4c7m-wxvm-r7gc","url":"https://github.com/advisories/GHSA-4c7m-wxvm-r7gc","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:26.521Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pch5-whg9-qr2r","url":"https://github.com/advisories/GHSA-pch5-whg9-qr2r","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:14.440Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29418","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29418","licence":"Public domain","modified":"2026-06-17T03:47:36.187Z"}],"updatedAt":"2026-11-25T22:58:00.493Z","epss":{"score":0.0151,"percentile":0.7519,"date":"2026-12-01T12:00:22.000Z"}}