CVE-2021-29418

nodejs-netmask: incorrectly parses an IP address that has octal integer with invalid character

Published Mar 30, 2021 CVSS 3.1 · 5.3 Medium EPSS 1.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-0690 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 GHSA Github GHSA GHSA-pch5-whg9-qr2r netmask npm package mishandles octal input data
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:acm:2.2::el7
Type Values Removed Values Added
CPEs cpe:/a:redhat:acm:2.2::el7
cpe:/a:redhat:acm:2.2::el8
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 10:02 PM
Reserved
Mar 29, 2021, 12:00 AM
Status
Modified
Published
Mar 30, 2021, 7:15 AM
Modified
Jun 17, 2026, 3:47 AM
Severity
Moderate
Public date
Mar 29, 2021, 12:00 AM