LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2021-21315: System Information Library for Node.JS Command Injection

RBRecent Breaches Vulnerability Intelligence·Jan 18, 2022
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Feb 1, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2021-21315 to its Known Exploited Vulnerabilities catalog on Jan 18, 2022, with a federal patch deadline of Feb 1, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

In this vulnerability, an attacker can send a malicious payload that will exploit the name parameter. After successful exploitation, attackers can execute remote.

CVE-2021-21315 is a command-injection vulnerability in the npm package known as the System Information Library for Node.JS. An attacker who can influence a specific input (the name parameter) may cause the library to run unintended operating-system commands, potentially leading to remote code execution on the host that runs the Node.js application. Because this library is commonly pulled in as a dependency to gather system metrics, the flaw can affect production services that never intended to expose shell access. Teams should treat it as a high-priority review item and confirm exact impact against the vendor advisory.

How it works

The underlying weakness is CWE-78: improper neutralization of special elements used in an OS command (“OS Command Injection”). The library accepts a name parameter and, in vulnerable versions, incorporates that value into a shell command without adequate sanitization or argument separation. An attacker who can supply a malicious payload for that parameter can therefore inject additional commands or arguments. Once the injected command runs with the privileges of the Node.js process, the attacker gains the ability to execute arbitrary code on the underlying system. Public detail on the precise payload format is limited; defenders should rely on the vendor advisory rather than attempting to reverse-engineer exploit strings.

Am I affected? How to find it in your systems

The component is an npm package used by Node.js applications that need system-information data (CPU, memory, disks, network interfaces, and similar). It typically appears as a direct or transitive dependency inside package.json / package-lock.json or yarn.lock files, and may be present in container images, serverless functions, or developer workstations that run Node.js services.

If the package is present but the name parameter is never populated from untrusted input, residual risk is lower; still verify the version and plan an update.

How to remediate

The primary action is to apply the vendor-supplied update. CISA’s required action is simply “Apply updates per vendor instructions.” Replace the vulnerable package with the patched release, rebuild and redeploy affected applications, and regenerate lock files so that transitive dependents also receive the fix. After patching:

If you can't patch immediately

Until the update can be deployed, reduce exposure with compensating controls:

These steps only buy time; they do not replace the vendor patch.

If your data may have been exposed

Actively exploited command-injection flaws can lead to full host compromise and subsequent data theft or ransomware, although ransomware use specifically tied to this CVE is not documented. If you discover evidence of exploitation, follow your incident-response plan: isolate the host, preserve volatile logs, rotate credentials that may have been accessible to the Node.js process, and assess whether sensitive data left the environment. As a quick additional check, you can run a free exposure scan of your email addresses against known breach data sets to see whether any associated accounts already appear in public dumps.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedNpm package · System Information Library for Node.JS
WeaknessCWE-78
Added to CISA KEVJan 18, 2022
Federal patch deadlineFeb 1, 2022
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities