{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-28918","id":"CVE-2021-28918","title":"Improper parsing of octal bytes in netmask","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.","descriptionLong":"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":"2021-04-01T12:33:50.000Z","updated":"2026-10-20T10:54:36.957164061Z","reserved":"2021-03-19T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"NVD"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":6.4,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"netmask","purl":"pkg:npm/netmask","ranges":["<1.1.0","<2.0.1"],"fixed":["1.1.0","2.0.1"],"advisory":"GHSA-4c7m-wxvm-r7gc"}],"cwes":["CWE-704","CWE-20"],"aliases":["CVE-2021-29418","GHSA-4c7m-wxvm-r7gc","GHSA-pch5-whg9-qr2r"],"references":[{"url":"https://www.npmjs.com/package/netmask","tags":["x_refsource_MISC","x_transferred","Product","Third Party Advisory","advisory","web"]},{"url":"https://github.com/rs/node-netmask","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications/","tags":["x_refsource_MISC","x_transferred","Exploit","Press/Media Coverage","Third Party Advisory","evidence"]},{"url":"https://github.com/advisories/GHSA-pch5-whg9-qr2r","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-011.md","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0010/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28918","tags":["advisory"]},{"url":"https://github.com/rs/node-netmask/blob/98294cb20695f2c6c36219a4fbcd4744fb8d0682/CHANGELOG.md#v110-mar-18-2021","tags":["web"]},{"url":"https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20210528-0010","tags":["web"]},{"url":"https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29418","tags":["advisory"]},{"url":"https://github.com/rs/node-netmask/commit/3f19a056c4eb808ea4a29f234274c67bc5a848f4","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20210604-0001","tags":["web"]},{"url":"https://sick.codes/sick-2021-011","tags":["web"]},{"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"]},{"url":"https://vuln.ryotak.me/advisories/6","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.15037,"epssPercentile":0.96794,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-28918","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28918","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-28918","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4c7m-wxvm-r7gc","ok":true,"note":"GHSA-4c7m-wxvm-r7gc"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pch5-whg9-qr2r","ok":true,"note":"GHSA-pch5-whg9-qr2r"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-28918","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 15% with CVSS 9.1"],"attention":null}