Alta

Systeminformation has command injection vulnerability in getWindowsIEEE8021x (SSID)

  • Publicada: 20.12.2024
  • Actualizado: 11.10.2026 10:22

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:

js
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.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Paquete de npm systeminformation < 5.23.7 5.23.7

Referencias

Puntuación CVSS 7.8/10
Vector CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Debilidad (CWE)
CWE-94
Plataforma
npm
Paquete
systeminformation
Publicada
20.12.2024
Actualizado
11.10.2026 10:22

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-cvv5-9h9w-qp2m - CC BY 4.0

Historial de vulnerabilidades: systeminformation

Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (14) en el archivo
Entradas en total
14
Primera → última
10.2020 07.2026
Sin corrección
0
Explotada en ataques
1

Distribución por gravedad

  • Crítica 1
  • Alta 10
  • Media 3

Divulgaciones por año

  1. 2020: 4
  2. 2021: 2
  3. 2022: 1
  4. 2023: 1
  5. 2024: 1
  6. 2025: 1
  7. 2026: 4
Gravedad:
  1. Systeminformation has command injection vulnerability in getWindowsIEEE8021x (SSID) esta entrada
    Alta · 7.8 CVE-2024-56334 < 5.23.7 5.23.7
  2. Crítica · 9.8 CVE-2023-42810 >= 5.0.0, < 5.21.7 5.21.7
  3. Alta · 7.3 CVE-2020-7778 < 4.30.2 4.30.2
  4. Alta · 8.9 CVE-2021-21388 < 5.6.4 5.6.4
  5. Alta · 7.8 Explotada en ataques CVE-2021-21315 < 5.3.1 5.3.1
  6. Alta · 8.8 CVE-2020-7752 < 4.27.11 4.27.11

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.