Skip to main content
← All vulnerabilities
CVE-2021-21315GHSA-2M8V-572M-FF2V

Command Injection Vulnerability

Published
Last modified
published
Listed in CISA KEV
Actively exploited
Fix
Fixed in 5.3.1
None on Exploit-DB, Metasploit or GitHub

Summary

The systeminformation package for Node.js, a library used to retrieve hardware, system, and OS details, is affected by a command injection flaw. An attacker who can influence the service parameters passed to certain of its functions could cause unintended commands to run on the host system.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • sebhildebrandt systeminformation

    fixed in 5.3.1

  • systeminformationnpm

    fixed in 5.3.1

References 5

npmjs.com

GitHub · sebhildebrandt/systeminformation

lists.apache.org

security.netapp.com

FAQ

Questions about CVE-2021-21315

What does this mean?

Service parameters passed to functions such as si.inetLatency(), si.inetChecksite(), si.services() and si.processLoad() were not checked, so a crafted value can inject commands into the operating system.Source: github.com

Am I affected, and how do I check?

All systeminformation versions before 5.3.1 are affected when code passes service parameters to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() or similar functions. To check, run npm ls systeminformation in the project or look at the version listed in package.json.Source: github.com

What should I do about it?

Upgrade systeminformation to version 5.3.1 or later, which adds a parameter check that fixes the problem.Source: github.com

Is it being exploited?

Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2022-01-18, which means it has evidence of attacks. No public exploit code is tracked.Source: cisa.gov, cve.now feed data