Actively exploited · Published Feb 16, 2021 · Assigned by GitHub_M
CVE-2021-21315Command Injection Vulnerability
High 7.1 Exploited
In plain English
A high-severity OS command injection in systeminformation from sebhildebrandt. Attackers are actively exploiting it in the wild (listed by CISA on January 18, 2022). The chance it is exploited in the next 30 days is estimated at 90.7% (higher than 99.8% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by Feb 1, 2022.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | node-systeminformation | no fix listed | DEBIAN-CVE-2021-21315 |
| npm | systeminformation | 5.3.1 | GHSA-2m8v-572m-ff2v |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sebhildebrandt | systeminformation | < 5.3.1 |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
References
- https://www.npmjs.com/package/systeminformation x_refsource_MISC
- https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v x_refsource_CONFIRM
- https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525 x_refsource_MISC
- [cordova-issues] 20210224 [GitHub] [cordova-cli] iva2k opened a new issue #549: update systeminformation package to >=5.3.1 mailing-list, x_refsource_MLIST
- https://security.netapp.com/advisory/ntap-20210312-0007/ x_refsource_CONFIRM
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315 government-resource