5.3medium
Improper parsing of octal bytes in netmask
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.51% (higher than 75% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-4c7m-wxvm-r7gcGHSA-pch5-whg9-qr2r
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| netmask (npm) | before 1.1.0, before 2.0.1 | GitHub Advisory Database |
| netmask_project netmask | before 2.0.1 | NVD |
All scores
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
: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. For complete protection from this vulnerability an upgrade to version 2.0.1 or later is recommended.
NVD (es)
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. NOTA: este problema se presenta debido a una corrección incompleta para el CVE-2021-28918.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-29418 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4c7m-wxvm-r7gc changed 2026-09-10 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-pch5-whg9-qr2r changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2021-29418 changed 2026-06-17 | Public domain |