CVE-2021-21315
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.
Severity
HIGH
CVSS v3
7.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N · source cna
Exploit chance (EPSS)
90.675%
chance of exploitation in the next 30 days
higher than 99.8% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-01-18
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | System Information Library for Node.JS Command Injection |
|---|---|
| Vendor / product | Npm package / System Information Library for Node.JS |
| Date added | 2022-01-18 |
| Federal remediation due date | 2022-02-01 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2025-02-06 |
Timeline
- 2021-02-16Published by the CNA17:00 UTC
- 2021-02-16GitHub advisory published (GHSA-2m8v-572m-ff2v)same day
- 2022-01-18Added to the CISA KEV catalog336 days after publication
- 2025-02-06CISA SSVC decision recorded1451 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2021-21315: Node.JS System Information Library <5.3.1 - Remote Command Injection
GitHub advisory GHSA-2m8v-572m-ff2v, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm systeminformation | before 5.3.1 | 5.3.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| systeminformation systeminformation | before 5.3.1fixed in 5.3.1 | 5.3.1 |
| apache cordova | 10.0.0no fix listed | not listed |
References
- https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525
- https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v
- https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3E
- https://security.netapp.com/advisory/ntap-20210312-0007/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315
- https://www.npmjs.com/package/systeminformation
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-21315'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-21315'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-21315'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-21315'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-21315'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).