CVE-2021-21315 System Information Library for Node.JS Command Injection

Exploited in the wild High 7.1 Published Updated
Exploited in the wild
Since 18 Jan 2022
Fix
Available

What is CVE-2021-21315?

CVE-2021-21315 is a high-severity vulnerability in sebhildebrandt systeminformation, published on 16 Feb 2021.

Official description

The System Information Library for Node.JS (npm package "systeminformation") is an open source collection of functions to retrieve detailed hardware, system and OS information. In systeminformation before version 5.3.1 there is a command injection vulnerability. Problem was fixed in version 5.3.1. As a workaround instead of upgrading, be sure to check or sanitize service parameters that are passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() ... do only allow strings, reject any arrays. String sanitation works as expected.

Weakness: CWE-78

Which versions are affected by CVE-2021-21315?

2 open source packages ship an affected version, including systeminformation. It affects 2 products.

PackageAffectedFixed in
systeminformation npmAll versions5.3.1
systeminformation npmAll versions5.3.1

Products include Apache Cordova, Systeminformation Systeminformation.

How do I fix CVE-2021-21315?

Upgrade systeminformation to 5.3.1 or later. US federal agencies must fix it by 1 Feb 2022.

Is CVE-2021-21315 being exploited?

Yes. Attackers have exploited CVE-2021-21315 in the wild since at least 18 Jan 2022.

Public exploit code: 1 Nuclei template and 6 proofs of concept on GitHub.

Sources

Also known as GHSA-2m8v-572m-ff2v.

Is CVE-2021-21315 in your software?

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

Check your SBOMs for free