CVE-2024-56334: Systeminformation has command injection vulnerability in getWindowsIEEE8021x (SSID)
Summary The SSID is not sanitized when before it is passed as a parameter to cmd.exe in the getWindowsIEEE8021x function. This means that malicious content in the SSID can be executed as OS commands. Details I have exploited this vulnerability in a Windows service using version 5.22.11 of the module, to escalate privileges (in an environment where I am authorized to do so).
Published Dec 20, 2024
Affected packages
systeminformation
- Ecosystem
- npm
- Affected
- <= 5.23.6
- Fixed in
- 5.23.7
- Check
npm ls systeminformation
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
The SSID is not sanitized when before it is passed as a parameter to cmd.exe in the getWindowsIEEE8021x function. This means that malicious content in the SSID can be executed as OS commands.
Details
I have exploited this vulnerability in a Windows service using version 5.22.11 of the module, to escalate privileges (in an environment where I am authorized to do so). However, as far as I can see from the code, it is still present in master branch at time of writing, on line 403/404 of network.js.
The SSID is obtained from netsh wlan show interface ... in getWindowsWirelessIfaceSSID, and then passed to cmd.exe /d /s /c "netsh wlan show profiles ... in getWindowsIEEE8021x, without sanitization.
PoC
First, the command injection payload should be included in the connected Wi-Fi SSID. For example create hotspot on mobile phone or other laptop, set SSID to payload, connect to it with victim Windows system. Two example SSID's to demonstrate exploitation are below.
Demonstration to run ping command indefinitely:
a" | ping /t 127.0.0.1 &Run executable with privileges of the user in which vulnerable function is executed. Chosen executable should should be placed in (assuming system drive is C): C:\a\a.exe.
a" | %SystemDrive%\a\a.exe &Then, the vulnerable function can be executed on the victim system, for example, using:
const si = require('systeminformation');
si.networkInterfaces((net) => { console.log(net) });Now the chosen command, PING.exe or a.exe will be run through the cmd.exe command line.
Impact
This vulnerability may enable an attacker, depending on how the package is used, to perform remote code execution or local privilege escalation.
Credited to xAiluros.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-116576
systeminformation vulnerable to Windows command injection in services() through Unicode quotation marks
high7.8Oct 28, 2026CVE-2026-116673
systeminformation has path traversal in Linux networkStats() that allows symlink-based file disclosure outside /sys/class/net
low3.3Oct 28, 2026CVE-2026-116674
systeminformation has prototype pollution in `networkStats()` via the interface name
medium6.5Oct 28, 2026CVE-2026-50289
systeminformation: OS command injection in networkInterfaces() via interfaces(5) source-directive path on Linux
high8.7Jul 15, 2026CVE-2026-44724
Systeminformation vulnerable to Linux command injection in networkInterfaces() via unsanitized NetworkManager connection profile name
high7.8May 13, 2026CVE-2026-26280
Systeminformation has a Command Injection via unsanitized interface parameter in wifi.js retry path
high8.4Feb 18, 2026
