Improper input validation of octal strings in netmask npm package v1.0.6 and below allows…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-704 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | netmask (npm) | before 1.1.0 | 1.1.0 | Patch available | GHSA-4c7m-wxvm-r7gc |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- netmask (npm) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-4c7m-wxvm-r7gc
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:netmask_project:netmask:*:*:*:*:*:node.js:*:* | up to 1.0.6 | Vulnerable | Netmask Project |
- cpe:2.3:a:netmask_project:netmask:*:*:*:*:*:node.js:*:* Versions up to 1.0.6 Vulnerable ·Netmask Project
Remediation
- Fix · GHSA-4c7m-wxvm-r7gc netmask (npm) Fixed in 1.1.0 Advisory →
Red Hat 2 advisories
- RHSA-2021:2461 Released 2021-06-16 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.2.4 security and bug fix update
- Red Hat Advanced Cluster Management for Kubernetes 2.2 for RHEL 7 rhacm2/management-ingress-rhel7, rhacm2/memcached-exporter-rhel7, rhacm2/openshift-hive-rhel7 +2
- Red Hat Advanced Cluster Management for Kubernetes 2.2 for RHEL 8 rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle, rhacm2/acmesolver-rhel8 +47
- RHSA-2021:1499 Released 2021-05-04 · Red Hat rating ModerateRed Hat Advanced Cluster Management 2.2.3 security and bug fix update
- Red Hat Advanced Cluster Management for Kubernetes 2.2 for RHEL 7 rhacm2/management-ingress-rhel7, rhacm2/memcached-exporter-rhel7, rhacm2/openshift-hive-rhel7 +2
- Red Hat Advanced Cluster Management for Kubernetes 2.2 for RHEL 8 rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle, rhacm2/acmesolver-rhel8 +47
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2021-28918
- 2026-10-03 Alias added: GHSA-4c7m-wxvm-r7gc
References
Exploit 2
Advisory 6
- https://www.npmjs.com/package/netmask
- https://github.com/rs/node-netmask
- https://github.com/advisories/GHSA-pch5-whg9-qr2r
- https://security.netapp.com/advisory/ntap-20210528-0010/
- https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects/
- https://nvd.nist.gov/vuln/detail/CVE-2021-28918
Other 4
- https://github.com/rs/node-netmask/blob/98294cb20695f2c6c36219a4fbcd4744fb8d0682/CHANGELOG.md#v110-mar-18-2021
- https://rootdaemon.com/2021/03/29/vulnerability-in-netmask-npm-package-affects-280000-projects
- https://security.netapp.com/advisory/ntap-20210528-0010
- https://www.bleepingcomputer.com/news/security/critical-netmask-networking-bug-impacts-thousands-of-applications
More Netmask Project Netmask vulnerabilities
- TI-2021-10136 The netmask package before 2.0.1 for Node.js mishandles certain unexpected characters in… CVSS 3.1MEDIUM 5.3
Sources
- CVE-2021-28918 · CVE Program
- CVE-2021-28918 · NVD
- FIRST EPSS
- GHSA-4c7m-wxvm-r7gc · GitHub Advisory Database · CC BY 4.0
- CVE-2021-28918 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences