# CVE-2021-21388: Command Injection Vulnerability in systeminformation

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

- **Severity:** HIGH 8.9
- **CVSS:** 8.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.85% (percentile 80, 2026-11-28)
- **CWE:** CWE-20, CWE-78
- **Aliases:** GHSA-jff2-qjw8-5476
- **Published:** 2021-04-06T17:30:14.000Z
- **Modified:** 2026-07-08T06:28:36.042Z

## Who should check

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

## Description

systeminformation is an open source system and OS information library for node.js. A command injection vulnerability has been discovered in versions of systeminformation prior to 5.6.4. The issue has been fixed with a parameter check on user input. Please upgrade to version \>= 5.6.4. If you cannot upgrade, be sure to check or sanitize service parameters that are passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() and other commands. Only allow strings, reject any arrays. String sanitation works as expected.

## Affected and fixed versions

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

## Mitigation

- Upgrade systeminformation to 5.6.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

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

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-21388 being exploited?

There is no confirmed exploitation: CVE-2021-21388 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.85% chance of exploitation in the next 30 days (as of 2026-11-28).

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

High: CVSS 8.9 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

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

systeminformation \< 5.6.4.

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

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

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

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-jff2-qjw8-5476>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-21388>
- patch: <https://github.com/sebhildebrandt/systeminformation/commit/01ef56cd5824ed6da1c11b37013a027fdef67524>
- patch: <https://github.com/sebhildebrandt/systeminformation/commit/0be6fcd575c05687d1076d5cd6d75af2ebae5a46>
- patch: <https://github.com/sebhildebrandt/systeminformation/commit/7922366d707de7f20995fc8e30ac3153636bf35f>
- other: <https://www.npmjs.com/package/systeminformation>

## 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-21388>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jff2-qjw8-5476> (license: <https://creativecommons.org/licenses/by/4.0/>)

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