# CVE-2024-21488: network Arbitrary Command Injection vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low; E: P
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 5.18% (percentile 93, 2026-11-28)
- **CWE:** CWE-77
- **Aliases:** GHSA-vvh2-82c7-ppfg
- **Published:** 2024-01-30T05:00:01.547Z
- **Modified:** 2026-07-26T15:25:10.967Z

## Who should check

- Projects that depend on npm package network (\< 0.7.0)
- Anyone running network \< 0.7.0
- Anyone running org.webjars.npm:network \< \*

## Description

Versions of the package network before 0.7.0 are vulnerable to Arbitrary Command Injection due to use of the child\_process exec function without input sanitization. If (attacker-controlled) user input is given to the mac\_address\_for function of the package, it is possible for the attacker to execute arbitrary commands on the operating system that this package is being run on.

## Affected and fixed versions

- npm `network`: affected \< 0.7.0; fixed 0.7.0 (osv)
- network: \< 0.7.0 (cvelist)
- org.webjars.npm:network: \< \* (cvelist)

## Mitigation

- Upgrade network to 0.7.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-21488. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-21488.md
Affected: network < 0.7.0
Fixed in: 0.7.0

Steps:
1. Search this machine and project for network (npm), network, org.webjars.npm:network: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-21488 being exploited?

There is no confirmed exploitation: CVE-2024-21488 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 5.18% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-21488?

High: CVSS 7.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-21488?

network \< 0.7.0.

### Is there a fix for CVE-2024-21488?

Yes. Fixed in 0.7.0. Upgrade network to 0.7.0 or later.

### How do I check if I'm affected by CVE-2024-21488?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-21488>
- patch: <https://github.com/tomas/network/commit/72c523265940fe279eb0050d441522628f8988e5>
- patch: <https://github.com/tomas/network/commit/6ec8713580938ab4666df2f2d0f3399891ed2ad7>
- patch: <https://github.com/tomas/network/commit/5599ed6d6ff1571a5ccadea775430c131f381de7>
- exploit: <https://security.snyk.io/vuln/SNYK-JS-NETWORK-6184371>
- exploit: <https://gist.github.com/icemonster/282ab98fb68fc22aac7c576538f6369c>
- other: <https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-11426552>
- other: <https://github.com/tomas/network>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-21488>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-vvh2-82c7-ppfg> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-21488> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-21488>
