← Vulnerability feed

Vulnerability record · CVE-2021-21315 · published 16 February 2021

CVE-2021-21315: systeminformation npm package command injection via service parameters

Systeminformation · Systeminformation

The Node.js package systeminformation before 5.3.1 passes service parameters to functions such as si.inetLatency(), si.inetChecksite(), si.services() and si.processLoad() without rejecting arrays, allowing OS command injection. The flaw is fixed in 5.3.1, and the vendor notes that string sanitization works as expected. It matters because the package is widely embedded in Node.js applications and monitoring agents, and the vulnerable functions are commonly called with user-influenced input.

7.8 CVSS 3.1 High CISA KEV since 18 Jan 2022 EPSS 91% · top 0.2% CWE-78 · OS command injection
7.8CVSS 3.1 base score, v2 4.6
91%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
2Affected product versions listed by NVD
11References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

high priorityThe flaw allows command execution with high impact and is in CISA KEV with very high EPSS, but the local attack vector and low privileges required keep it below critical.

What it is

The Node.js package systeminformation before 5.3.1 passes service parameters to functions such as si.inetLatency(), si.inetChecksite(), si.services() and si.processLoad() without rejecting arrays, allowing OS command injection. The flaw is fixed in 5.3.1, and the vendor notes that string sanitization works as expected. It matters because the package is widely embedded in Node.js applications and monitoring agents, and the vulnerable functions are commonly called with user-influenced input.

Impact

An attacker who can control a parameter passed to the affected functions can execute arbitrary OS commands with the privileges of the Node.js process, leading to full compromise of confidentiality, integrity and availability on that host.

Attack surface

The CVSS vector is local (AV:L) with low privileges required (PR:L) and no user interaction (UI:N), so exploitation is reached through a local or already-authenticated context that can supply input to the vulnerable functions. The record does not describe a remote unauthenticated path.

Exploitation

CVE-2021-21315 is listed in CISA KEV with a due date of 2022-02-01, and EPSS gives a 30-day probability of 0.90675 (99.8th percentile), indicating observed exploitation and very high likelihood. No ransomware campaign use is documented in the record.

What to do

  • Upgrade systeminformation to version 5.3.1 or later, which contains the patch commit referenced in the advisory.
  • If upgrading is not immediately possible, validate and sanitize all service parameters passed to si.inetLatency(), si.inetChecksite(), si.services() and si.processLoad(), allowing only strings and rejecting arrays.
  • Inventory Node.js applications and dependencies that bundle systeminformation, including Cordova-related and NetApp products noted in the references, and confirm their bundled version.
  • Restrict local access and privileges on hosts running affected Node.js services to reduce the pool of accounts that can reach the vulnerable functions.
  • Monitor vendor advisories for updated guidance, since the record lists Apache Cordova and NetApp as related vendors.

Detection

  • Search application and dependency manifests for systeminformation versions below 5.3.1.
  • Audit code paths that call si.inetLatency(), si.inetChecksite(), si.services() or si.processLoad() with externally supplied or user-controlled parameters.
  • Monitor Node.js process behavior for unexpected child process or shell execution originating from the application.
  • Review host logs for command execution anomalies on systems running affected Node.js services.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-21315 to the Known Exploited Vulnerabilities catalog on 18 January 2022 as "System Information Library for Node.JS Command Injection". Required action: Apply updates per vendor instructions. Federal deadline 1 February 2022.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-21315 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2023-42810Systeminformation command injection vulnerabilitysysteminformation is a System Information Library for Node.JS. Versions 5.0.0 through 5.21.6 have a SSID Command Injection Vulnerability. The problem…EPSS 2.2%9.8CVE-2020-26300Systeminformation command injection vulnerabilitysysteminformation is an npm package that provides system and OS information library for node.js. In systeminformation before version 4.26.2 there is …EPSS 1.4%9.8CVE-2021-21388Systeminformation improper input validation vulnerabilitysysteminformation is an open source system and OS information library for node.js. A command injection vulnerability has been discovered in versions …EPSS 1.9%9.8CVE-2020-26245Systeminformation os command injection vulnerabilitynpm package systeminformation before version 4.30.5 is vulnerable to Prototype Pollution leading to Command Injection. The issue was fixed with a rew…EPSS 2.2%9.8CVE-2014-0073Apache cordova in-app-browser permissions and access controls vulnerabilityThe CDVInAppBrowser class in the Apache Cordova In-App-Browser standalone plugin (org.apache.cordova.inappbrowser) before 0.3.2 for iOS and the In-Ap…EPSS 8.3%8.8CVE-2026-26318Systeminformation os command injection vulnerabilitysysteminformation is a System and OS information library for node.js. Versions prior to 5.31.0 are vulnerable to command injection via unsanitized `l…EPSS 1.3%8.8CVE-2020-26274Systeminformation os command injection vulnerabilityIn systeminformation (npm package) before version 4.31.1 there is a command injection vulnerability. The problem was fixed in version 4.31.1 with a s…EPSS 2.7%8.8CVE-2020-7752Systeminformation os command injection vulnerabilityThis affects the package systeminformation before 4.27.11. This package is vulnerable to Command Injection. The attacker can concatenate curl's param…EPSS 6.7%

Source: NIST National Vulnerability Database (record CVE-2021-21315), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.