# CVE-2021-21315: Command Injection Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Yes: in CISA KEV since 2022-01-18; federal due date 2022-02-01
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 90.67% (percentile 100, 2026-11-28)
- **CWE:** CWE-78
- **Aliases:** GHSA-2m8v-572m-ff2v
- **Published:** 2021-02-16T16:51:04.000Z
- **Modified:** 2026-07-08T06:29:36.391Z

## Who should check

- Projects that depend on npm package systeminformation (\< 5.3.1)
- Anyone running sebhildebrandt systeminformation \< 5.3.1

## 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

- npm `systeminformation`: affected \< 5.3.1; fixed 5.3.1 (osv)
- sebhildebrandt systeminformation: \< 5.3.1 (cvelist)

## Mitigation

- Upgrade systeminformation to 5.3.1 or later.

## Timeline

- 2021-02-16: Published
- 2022-01-18: Added to CISA KEV (exploited in the wild)
- 2022-02-01: CISA remediation due date for US federal agencies
- 2026-07-08: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-21315. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21315.md
Affected: systeminformation < 5.3.1
Fixed in: 5.3.1

Steps:
1. Search this machine and project for systeminformation (npm), sebhildebrandt systeminformation: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-21315 being exploited?

Yes. CISA lists CVE-2021-21315 in its Known Exploited Vulnerabilities catalog since 2022-01-18, which means attacks have been seen. No public exploit code is known. EPSS estimates a 90.67% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2021-21315?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-21315?

systeminformation \< 5.3.1.

### Is there a fix for CVE-2021-21315?

Yes. Fixed in 5.3.1. Upgrade systeminformation to 5.3.1 or later.

### How do I check if I'm affected by CVE-2021-21315?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-21315>
- patch: <https://github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525>
- other: <https://www.npmjs.com/package/systeminformation>
- other: <https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3E>
- other: <https://security.netapp.com/advisory/ntap-20210312-0007/>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315>
- other: <https://github.com/sebhildebrandt/systeminformation>
- other: <https://lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05@%3Cissues.cordova.apache.org%3E>
- other: <https://security.netapp.com/advisory/ntap-20210312-0007>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-21315>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-2m8v-572m-ff2v> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2021-21315> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-21315>
