CVE-2021-21315 is a high-severity (CVSS 7.8) OS Command Injection vulnerability in systeminformation. 7 public exploit references exist, so weaponization risk is real. A fix is available for systeminformation — see the affected versions and patch details below.
Command Injection Vulnerability
Exploitation Status
Actively exploited in the wild
- CISA’s SSVC triage classifies this CVE as under active exploitation.
Exploitation and automatability from CISA’s SSVC triage for CVE-2021-21315.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-21315 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 394,415 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
systeminformationnpmDescription
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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | systeminformation | all versions | 5.3.1npm install systeminformation@5.3.1 |
Affected Products
cordovaapachesysteminformationsysteminformationResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
The System Information Library for Node.JS (npm package "systeminformati…
The System Information Library for Node.JS (npm package "systeminformati…
The System Information Library for Node.JS (npm package "systeminformati…
The System Information Library for Node.JS (npm package "systeminformati…
The System Information Library for Node.JS (npm package "systeminformati…
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for systeminformation, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update systeminformation to 5.3.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-21315 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2021-21315
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-21315 -u https://target- Template
- Node.JS System Information Library <5.3.1 - Remote Command Injection
- Severity
- high
- Impact
- Successful exploitation of this vulnerability allows remote attackers to execute arbitrary commands on the affected system.
- Remediation
- Upgrade to 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
Template by ProjectDiscovery nuclei-templates (pikpikcu), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-21315 in your dependencies?
Find it across npm, including transitive dependencies.