Quick answers
- Is CVE-2024-21488 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2024-21488 being exploited in the wild.
- How severe is CVE-2024-21488?
- Low severity, with a CVSS score of 3.1, published 30 January 2024.
- Which products and versions are affected?
- network (npm) SEMVER:introduced=0,fixed=0.7.0.
- Is there a fix for CVE-2024-21488?
- Yes. network (npm): upgrade to 0.7.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2024-21488 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2024-21488?
- Check whether you run network (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- network (npm): upgrade to 0.7.0 or later
npm install network@0.7.0
Technical details
The vulnerability is a command injection flaw (CWE-77) in the mac_address_for function, which uses the child_process exec function without proper input validation or sanitization. If an attacker supplies specially crafted input to this function, they can break out of the intended command and execute arbitrary shell commands with the privileges of the running Node.js process. The attack requires network access and the ability to provide input to the affected function; no authentication is required. The patch was released in version 0.7.0, which adds input validation for network interface names.
Affected products
- network before 0.7.0
Identifiers
- CVE-2024-21488
- GHSA-vvh2-82c7-ppfg
Timeline
- 2024-01-30: disclosed
- 2024-01-30: patched: Version 0.7.0 released with input validation fix