CVE-2021-21315: System Information Library for Node.JS Command Injection
Npm package System Information Library for Node.JS · listed in the CISA catalog of actively exploited vulnerabilities since 2022-01-18.
- CVSS v3.1 (CVE record)
- 7.1
- high
- EPSS (exploit probability, 30 days)
- 91%
- higher than 99.8% of all CVEs
- Added to CISA KEV
- 2022-01-18
- US federal due date 2022-02-01
- Automatable (CISA SSVC)
- no
- technical impact: partial
CVE-2021-21315 explained
CVE-2021-21315 is a command injection flaw (CWE-78) in the System Information Library for Node.JS, the npm package "systeminformation", in versions before 5.3.1. Applications that pass untrusted parameters to certain library functions can be made to run unintended OS commands. CISA lists it as known to be exploited.
Impact
An attacker who can influence parameters passed to functions such as si.inetLatency(), si.inetChecksite(), si.services() or si.processLoad() may inject OS commands. CVSS rates the vector as local, with low complexity, no privileges and no user interaction, a changed scope and high integrity impact. CISA's SSVC rates it as not automatable with partial technical impact. Attackers are known to exploit it. Ransomware use is unknown.
Who is affected
The CVE record lists sebhildebrandt systeminformation versions < 5.3.1 as affected. The record's fixed-version field names no fixed version. The description, however, states that the problem was fixed in version 5.3.1.
Written with AI from the data on this page and checked against it automatically.
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.
CISA required action: Apply updates per vendor instructions.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- sebhildebrandt systeminformationAffectedFixed in
- < 5.3.1
not stated
| Product | Affected | Fixed in |
|---|---|---|
| sebhildebrandt systeminformation |
| not stated |
How to fix it
- The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
- Vendor advisory: github.com/sebhildebrandt/systeminformation/security/advi…
- CISA's deadline for US federal agencies: 2022-02-01 (passed) – a useful benchmark for everyone else, too.
What to do
- Upgrade the systeminformation package to version
5.3.1or later, as the description states, and follow the vendor advisory. - Identify all projects and dependencies that include systeminformation and confirm which version they resolve to.
- If you cannot upgrade, check or sanitize service parameters passed to si.inetLatency(), si.inetChecksite(), si.services() and si.processLoad().
- Only allow strings as parameters to these functions and reject any arrays.
- Check systems that ran vulnerable versions for signs of compromise, since attackers are known to exploit this flaw.
The record's fixed-version field is empty, but the description states the fix is in version 5.3.1. Confirm this in the vendor advisory and apply updates per vendor instructions, as CISA requires. Until you can upgrade, sanitize parameters passed to the affected functions, accept only strings and reject arrays.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Partial – limited control or information
Weakness: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Questions about CVE-2021-21315
- Is CVE-2021-21315 exploited by attackers?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-01-18, with a US federal due date of 2022-02-01. Whether it is used in ransomware campaigns is unknown.
- Is there a workaround if I cannot upgrade right away?
- Yes. The description advises checking or sanitizing service parameters passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() and similar functions. Allow only strings and reject arrays. String sanitation works as expected.
- Which version fixes the issue?
- The description states the problem was fixed in version
5.3.1. The record's structured fixed-version field lists none, so confirm with the vendor advisory.
Written with AI from the data on this page and checked against it automatically.
References
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.