# CVE-2023-42810: systeminformation SSID command injection vulnerability

Source: https://junglewise.ai/threats/cve-2023-42810-systeminformation-ssid-command-injection-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-09-21. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

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

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.

Technologies: [systeminformation (npm)](https://junglewise.ai/threats/technologies/systeminformation). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2023-42810 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-42810 being exploited in the wild.

**How severe is CVE-2023-42810?** Low severity, with a CVSS score of 3.1, published 21 September 2023.

**Which products and versions are affected?** systeminformation (npm) SEMVER:introduced=5.0.0,fixed=5.21.7.

**Is there a fix for CVE-2023-42810?** Yes. systeminformation (npm): upgrade to 5.21.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2023-42810 attacked?** It is attacked over the network.

**Am I affected by CVE-2023-42810?** Check whether you run systeminformation (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- systeminformation (npm): upgrade to 5.21.7 or later

  ```sh
  npm install systeminformation@5.21.7
  ```


## 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

## Identifiers

- CVE-2023-42810
- GHSA-gx6r-qc2v-3p3v

## Timeline

- 2023-09-21: disclosed

## References

- [https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-gx6r-qc2v-3p3v](https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-gx6r-qc2v-3p3v)

## Related threats

- [systeminformation prototype pollution in networkStats](https://junglewise.ai/threats/cve-2026-116674-systeminformation-is-a-system-and-os-information-library-for)
- [systeminformation has path traversal in Linux networkStats() that allows symlink-based file disclosure outside /sys/class/net](https://junglewise.ai/threats/cve-2026-116673-systeminformation-is-a-system-and-os-information-library-for)
- [systeminformation PowerShell command injection via Unicode quotation marks](https://junglewise.ai/threats/cve-2026-116576-systeminformation-is-a-system-and-os-information-library-for)
- [sebhildebrandt systeminformation OS command injection in networkInterfaces](https://junglewise.ai/threats/cve-2026-50289-sebhildebrandt-systeminformation-os-command-injection-in)
- [sebhildebrandt systeminformation command injection in networkInterfaces](https://junglewise.ai/threats/cve-2026-44724-sebhildebrandt-systeminformation-command-injection-in)
