CVE-2024-21488 network Arbitrary Command Injection vulnerability

High 7.3 Published Updated

Attackers can execute arbitrary OS commands via unsanitized input in the mac_address_for function of the network npm package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-21488?

CVE-2024-21488 is a high-severity command injection vulnerability in network, published on 30 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-77

Which versions are affected by CVE-2024-21488?

2 open source packages ship an affected version, including network. It affects 1 product.

PackageAffectedFixed in
network npmAll versions0.7.0
network npmAll versions0.7.0

Products include Forkhq Network.

How do I fix CVE-2024-21488?

Upgrade network to 0.7.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-21488 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21488 exists.

Sources

Also known as GHSA-vvh2-82c7-ppfg.

Is CVE-2024-21488 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free