BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2021-21315 in Apache Cordova and 1 more product

Known-exploited (CISA) since 2022-01-18 High 7.8 Fix available

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 in...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.8
EPSS90.7%
EPSS percentile100th
FixAvailable

Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apache Cordova 10.0.0
Systeminformation Systeminformation < 5.3.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedYes added 2022-01-18
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-21315
BreachSpider IDBS-2021-GLOBAL-246488-H
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2021-02-16
Last modified2025-10-24
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-78: OS Command Injection

Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.

Related attack patterns (CAPEC)

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78

CAPEC-108 Command Line Execution through SQL Injection via CWE-78

CAPEC-6 Argument Injection via CWE-78

CAPEC-15 Command Delimiters via CWE-78

CAPEC-88 OS Command Injection via CWE-78

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

The System Information Library for Node.JS (npm package 'systeminformation') contains a command injection vulnerability in versions prior to 5.3.1. This vulnerability allows an attacker to execute arbitrary commands on the affected system, leading to potential compromise of system integrity and confidentiality. Given the high CVSS score and the presence of a public proof-of-concept, immediate action is required to mitigate the risk.

The vulnerability exists in the 'systeminformation' npm package, which is used to gather detailed hardware, system, and OS information. An attacker can exploit this vulnerability by injecting malicious commands into the parameters of certain functions (e.g., si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad()). The attacker needs local access and low privileges to exploit this vulnerability, but no user interaction is required.

Compensating controls AI-drafted, review before use

Implement input validation and sanitization for all parameters passed to the affected functions. Ensure that only strings are accepted and reject any arrays. Consider using a web application firewall (WAF) to monitor and block suspicious requests.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2021-21315?

The System Information Library for Node.JS (npm package 'systeminformation') contains a command injection vulnerability in versions prior to 5.3.1. This vulnerability allows an attacker to execute arbitrary commands on the affected system, leading to potential compromise of system integrity and confidentiality. Given the high CVSS score and the presence of a public proof-of-concept, immediate action is required to mitigate the risk.

What is the CVSS score for CVE-2021-21315?

CVE-2021-21315 has CVSS 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 90.7%.

Is CVE-2021-21315 actively exploited?

Yes. CVE-2021-21315 is in the CISA known-exploited catalog (added 2022-01-18). Active exploitation confirmed. Immediate patching required.

How do I remediate CVE-2021-21315?

Priority: IMMEDIATE.

What systems are affected by CVE-2021-21315?

CVE-2021-21315 affects Apache Cordova; Systeminformation Systeminformation.

What NERC-CIP standard applies to CVE-2021-21315?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system, which could lead to the compromise of critical cyber assets and the disruption of power delivery systems.

What IEC 62443 requirement maps to CVE-2021-21315?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a command injection vulnerability that can be exploited to execute arbitrary code, compromising the security of the system and potentially affecting the availability and integrity of industrial control systems.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apache","product":"Cordova","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-10-24.