CVE-2022-29080 Command injection in npm-dependency-versions
Attackers can execute arbitrary commands via shell metacharacters in the pkgs key of a JSON object passed to the dependencyVersions function.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-29080?
CVE-2022-29080 is a critical command injection vulnerability in n/a, published on 12 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The npm-dependency-versions package through 0.3.0 for Node.js allows command injection if an attacker is able to call dependencyVersions with a JSON object in which pkgs is a key, and there are shell metacharacters in a value.
Weakness: CWE-78
Which versions are affected by CVE-2022-29080?
2 open source packages ship an affected version, including npm-dependency-versions. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
npm-dependency-versions npm | All versions to 0.3.0 | None |
npm-dependency-versions npm | All versions to 0.3.0 | None |
Products include Npm-Dependency-Versions Project Npm-Dependency-Versions.
How do I fix CVE-2022-29080?
No fix has been published for CVE-2022-29080 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-29080 being exploited?
There is no known exploitation of CVE-2022-29080 in the wild and no public exploit code.
Sources
Also known as GHSA-m7xq-8jp8-rj2c.