Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-21315

HIGH 7.1ExploitedEPSS 100%

Command Injection Vulnerability

Also known as GHSA-2m8v-572m-ff2v

Mitigation

  • Upgrade systeminformation to 5.3.1 or later.

Who should check

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

Vulnerability facts

Affected
systeminformation < 5.3.1
Fixed in
5.3.1
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)
CVSS
7.1 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
90.67% chance of exploitation in 30 days (percentile 100, 2026-11-26)
CWE
CWE-78
Published
Modified

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

Package / productAffectedFixedSource
npm systeminformation< 5.3.15.3.1osv
sebhildebrandt systeminformation< 5.3.1—cvelist

Timeline

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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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-26).

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.

Sponsors