Junglewise Threat Intelligence

CVE-2023-42810: systeminformation SSID command injection vulnerability

CVE-2023-42810 · Severity: low · CVSS 3.1 · Published 2023-09-21

Technologies: Systeminformation. Vendors: npm.

Executive brief

systeminformation is a Node.js library that gathers system and hardware information. A command injection vulnerability in the WiFi-related functions allows an attacker to execute arbitrary system commands by passing malicious input to the wifiConnections() or wifiNetworks() functions. This could lead to complete system compromise, including unauthorized access to sensitive data and malware installation.

Technical details

The vulnerability is a command injection flaw (CWE-77) in the wifiConnections() and wifiNetworks() functions, where user-supplied SSID parameters are not properly sanitized before being passed to system commands. An attacker can inject arbitrary shell commands into the SSID parameter without authentication or user interaction required, since the library accepts untrusted input. Successful exploitation allows remote code execution with the privileges of the process running the application. The vulnerability was introduced in version 5.0.0 and fixed in version 5.21.7 through proper parameter validation. Version 4 and earlier are not affected.

Affected products

  • systeminformation systeminformation 5.0.0 to 5.21.6

Timeline

  • 2023-09-21: disclosed

References

Related threats