CVE-2021-21315
mediumpriority · act · 90OT risk · criticalKEV · exploitedEPSS 0.907 · 100 %ileexploit · PoCEURUUSadded 2022-01-18remediate by 2022-02-01
required action Apply updates per vendor instructions.
EPSS · scored 2026-10-27
System Information Library for Node.JS Command Injection
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.6–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (6)
Public proof-of-concept and weaponised exploit code.
- ForbiddenProgrammer/CVE-2021-21315-PoCCVE 2021-21315 PoCPoC · poc_in_github
- MazX0p/CVE-2021-21315-exploitsysteminformationPoC · poc_in_github
- alikarimi999/CVE-2021-21315alikarimi999/CVE-2021-21315PoC · poc_in_github
- xMohamed0/CVE-2021-21315-POCxMohamed0/CVE-2021-21315-POCPoC · poc_in_github
affected products (6)
Products and version ranges known to be affected.
- systeminformation systeminformation< 5.3.1nvdUScpe:2.3:a:systeminformation:systeminformation:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-2m8v-572m-ff2vCommand Injection Vulnerability2021-02-16ghsa · osvUS
### Impact command injection vulnerability ### Patches Problem was fixed with a parameter check. Please upgrade to version >= 5.3.1 ### Workarounds If you cannot upgrade, 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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (19)
External citations — patches, advisories, analysis.
- https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525cnnvd
- https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2vcnnvd
- https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05@%3Cissues.cordova.apache.org%3Ecnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-21315cnnvd
- https://security.netapp.com/advisory/ntap-20210312-0007/cnnvd
- https://vigilance.fr/vulnerability/Node-js-systeminformation-code-execution-via-Command-Injection-35150cnnvd
- https://www.ibm.com/blogs/psirt/security-bulletin-vulnerabilities-in-apache-node-js-and-docker-affect-ibm-spectrum-protect-plus/cnnvd
- https://www.npmjs.com/package/systeminformationcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan