Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-21315

CVE-2021-21315: Systeminformation Command Injection RCE Flaw

CVE-2021-21315 is a command injection vulnerability in the Systeminformation library for Node.js that enables remote code execution. This article covers the technical details, affected versions, security impact, and mitigation steps.

Published: March 4, 2026

CVE-2021-21315 Overview

CVE-2021-21315 is a command injection vulnerability in the System Information Library for Node.js (npm package systeminformation), an open source collection of functions to retrieve detailed hardware, system, and OS information. This vulnerability allows attackers to inject arbitrary commands through unsanitized input parameters passed to specific library functions, potentially leading to complete system compromise.

Critical Impact

This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. Successful exploitation enables attackers to execute arbitrary commands with the privileges of the Node.js application, potentially leading to full system compromise.

Affected Products

  • systeminformation npm package versions prior to 5.3.1
  • Apache Cordova version 10.0.0
  • Any Node.js applications utilizing vulnerable versions of the systeminformation package

Discovery Timeline

  • 2021-02-16 - CVE-2021-21315 published to NVD
  • 2025-10-24 - Last updated in NVD database

Technical Details for CVE-2021-21315

Vulnerability Analysis

The vulnerability exists in multiple functions within the systeminformation library that accept user-controlled input parameters. The affected functions include si.inetLatency(), si.inetChecksite(), si.services(), and si.processLoad(). These functions fail to properly validate and sanitize input parameters before using them in system command execution contexts.

The core issue stems from the library accepting arrays as input parameters when only strings should be permitted. When an attacker passes a specially crafted array containing command injection payloads, the library incorrectly processes these values and executes them as shell commands. This allows attackers to break out of the intended command context and execute arbitrary commands on the underlying operating system.

Root Cause

The root cause is improper input validation (CWE-78: OS Command Injection) where the affected functions do not adequately sanitize user-supplied parameters before incorporating them into system commands. Specifically, the library fails to enforce string-only input and does not properly escape or sanitize array elements when they are passed to command execution routines. This allows attackers to inject command separators and additional commands that execute with the privileges of the Node.js process.

Attack Vector

The attack requires local access where an attacker can control input parameters passed to the vulnerable systeminformation functions. In typical deployment scenarios, this could occur through:

  1. Web applications that expose system information endpoints accepting user input
  2. APIs that allow users to specify service names, process names, or network targets
  3. Internal tools where user-controlled data flows to systeminformation function calls

An attacker crafts a malicious array payload containing shell metacharacters and command sequences. When the vulnerable function processes this array, instead of treating it as a literal string value, the command interpreter executes the injected commands. The attack does not require authentication if the vulnerable function is exposed through an unauthenticated endpoint.

The vulnerability leverages the way Node.js child_process functions handle array arguments, allowing attackers to bypass string sanitization that might otherwise be in place for single string inputs.

Detection Methods for CVE-2021-21315

Indicators of Compromise

  • Unusual command execution patterns originating from Node.js processes
  • Process spawning from Node.js applications that execute shell commands with unexpected arguments
  • Suspicious array-formatted parameters in application logs containing shell metacharacters like ;, |, &&, or backticks
  • Network connections or file system modifications initiated by Node.js worker processes

Detection Strategies

  • Monitor for anomalous child process spawning from Node.js applications, particularly shell invocations with command chaining characters
  • Implement application-level logging to capture parameters passed to systeminformation functions
  • Deploy endpoint detection rules to identify command injection patterns in process command lines
  • Review npm dependency audits for the presence of systeminformation versions prior to 5.3.1

Monitoring Recommendations

  • Configure SentinelOne to alert on command injection behavioral patterns from Node.js runtime processes
  • Implement Software Composition Analysis (SCA) to continuously monitor for vulnerable npm packages in your application dependencies
  • Enable detailed process creation auditing on systems running Node.js applications
  • Monitor for unexpected outbound network connections from Node.js application servers

How to Mitigate CVE-2021-21315

Immediate Actions Required

  • Upgrade the systeminformation npm package to version 5.3.1 or later immediately
  • Audit all applications using systeminformation to identify vulnerable deployments
  • Implement input validation at the application layer to reject array parameters for affected functions
  • Review application code for instances where user input flows to systeminformation function calls

Patch Information

The vulnerability was fixed in systeminformation version 5.3.1. The patch implements proper input validation to ensure that only string parameters are accepted by the affected functions, preventing array-based command injection attacks. The fix can be reviewed in the GitHub commit.

Organizations should update their package.json to specify the minimum safe version and run npm update systeminformation to apply the fix. For additional details, refer to the GitHub Security Advisory.

Workarounds

  • If upgrading is not immediately possible, implement application-level input sanitization to ensure parameters passed to si.inetLatency(), si.inetChecksite(), si.services(), and si.processLoad() are strictly strings
  • Reject any array inputs at the application boundary before passing data to systeminformation functions
  • Apply a strict allowlist for acceptable input values where possible, limiting parameters to known-safe service names or hosts
  • Consider isolating Node.js applications running vulnerable versions in containers with restricted privileges until patching is complete
bash
# Update systeminformation to patched version
npm update systeminformation

# Verify installed version is 5.3.1 or later
npm list systeminformation

# Audit for vulnerable packages
npm audit

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSysteminformation

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability93.76%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Security Advisory

  • Apache Mailing List Thread

  • NetApp Security Advisory

  • NPM Package Information

  • CISA Known Exploits Catalog
  • Vendor Resources
  • GitHub Commit Change
  • Related CVEs
  • CVE-2026-26318: systeminformation Command Injection RCE

  • CVE-2026-26280: systeminformation Library RCE Vulnerability

  • CVE-2023-42810: Systeminformation RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English