CVEs / CVE-2021-21315
CVE-2021-21315: System Information Library for Node.JS Command Injection
- Known exploited in the CISA KEV catalog since 18 Jan 2022
- high 7.8 CVSS 3.1 (NVD)
- EPSS 90.6% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2021-21315
Summary
In this vulnerability, an attacker can send a malicious payload that will exploit the name parameter. After successful exploitation, attackers can execute remote.
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 and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| sebhildebrandt systeminformation | < 5.3.1 | — |
| Product | Affected | Fixed in |
|---|---|---|
| systeminformation (npm) | before 5.3.1 | 5.3.1 |
Package versions from GHSA-2m8v-572m-ff2v.
Exploitation
| In CISA KEV since | 18 Jan 2022 |
|---|---|
| Due date for US federal agencies | 1 Feb 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-78 |
References
- CVE-2021-21315 on NVD
- CVE-2021-21315 in the CISA KEV catalog
- CVE-2021-21315 on OSV
- https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525 Patch
- https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v Third Party Advisory
- https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3E Issue Tracking, Mailing List
- https://security.netapp.com/advisory/ntap-20210312-0007/ Third Party Advisory
- https://www.npmjs.com/package/systeminformation Product
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.