Advisory

GHSA-4c7m-wxvm-r7gc

Also known as: CVE-2021-28918, CVE-2021-29418, GHSA-pch5-whg9-qr2r

Summary

Improper parsing of octal bytes in netmask

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-04-14 15:03 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

netmask

npm · All systems

Affected

  • introduced 0, fixed 1.1.0 (semver)

Fixed versions

1.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences