Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. network
  4. ›
  5. CVE-2024-21488

CVE-2024-21488: Improper Neutralization of Special Elements used in a Command ('Command Injection')

January 30, 2024

Versions of the package network before 0.7.0 is 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 an attacker to execute arbitrary commands on the operating system that this package is being run on.

References

  • gist.github.com/icemonster/282ab98fb68fc22aac7c576538f6369c
  • github.com/advisories/GHSA-vvh2-82c7-ppfg
  • github.com/tomas/network/commit/5599ed6d6ff1571a5ccadea775430c131f381de7
  • github.com/tomas/network/commit/6ec8713580938ab4666df2f2d0f3399891ed2ad7
  • github.com/tomas/network/commit/72c523265940fe279eb0050d441522628f8988e5
  • nvd.nist.gov/vuln/detail/CVE-2024-21488
  • security.snyk.io/vuln/SNYK-JS-NETWORK-6184371

Code Behaviors & Features

Detect and mitigate CVE-2024-21488 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.0

Fixed versions

  • 0.7.0

Solution

Upgrade to version 0.7.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/network/CVE-2024-21488.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:05 +0000.