CVE-2023-42810: Systeminformation Systeminformation SSID Command Injection Vulnerability Vulnerability

CRITICAL
Advisory Identifier: GHSA-gx6r-qc2v-3p3v
CVSS 9.8
CWE-77
Published
Advisory Summary

CVE-2023-42810 is a CRITICAL (CVSS 9.8) systeminformation ssid command injection vulnerability vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Systeminformation libraries in the npm ecosystem. The issue involves systeminformation ssid command injection vulnerability. Remediation is available by upgrading affected packages to version 5.21.7.

CVE-2023-42810 at a Glance

CVE Identifier CVE-2023-42810
GHSA Identifier GHSA-gx6r-qc2v-3p3v
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Systeminformation
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2023-42810

To remediate this vulnerability, upgrade all affected Systeminformation dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

systeminformation fixed: 5.21.7
npm install systeminformation@5.21.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls systeminformation

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2023-42810, inspect your project dependencies using npm:

npm ls systeminformation

Analyze the terminal output to locate any version of Systeminformation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.21.7), your application is affected.

Note: The npm ls systeminformation command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Systeminformation, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact SSID Command Injection Vulnerability ### Patches Problem was fixed with a parameter check. Please upgrade to version >= 5.21.7, Version 4 was not affected ### Workarounds If you cannot upgrade, be sure to check or sanitize parameter strings that are passed to wifiConnections(), wifiNetworks() (string only) ### References See also https://systeminformation.io/security.html

CVE-2023-42810 Affected Systeminformation Versions

1 component(s)
Fixed Versions:
5.21.7
Product / Package Ecosystem Affected Versions Fixed Version
systeminformation
npm
≥ 5.0.0
< 5.21.7
5.21.7

References

Frequently Asked Questions

What is CVE-2023-42810?
CVE-2023-42810 is a security vulnerability in Systeminformation involving systeminformation SSID Command Injection Vulnerability under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Systeminformation versions are affected?
Affected versions include releases prior to 5.21.7 across affected packages: systeminformation.
What version fixes CVE-2023-42810?
Upgrading to 5.21.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is systeminformation affected?
Yes, systeminformation is affected in releases prior to 5.21.7. Upgrade your dependency to 5.21.7 or later.
What is the CVSS score of CVE-2023-42810?
CVE-2023-42810 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2023-42810?
CVE-2023-42810 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.).
How can I check npm dependencies for CVE-2023-42810?
Run the dependency tree command: 'npm ls systeminformation'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gx6r-qc2v-3p3v",
  "modified" : "2023-09-21T17:15:53Z",
  "published" : "2023-09-21T17:15:53Z",
  "aliases" : [ "CVE-2023-42810" ],
  "summary" : "systeminformation SSID Command Injection Vulnerability",
  "details" : "### Impact\nSSID Command Injection Vulnerability\n\n### Patches\nProblem was fixed with a parameter check. Please upgrade to version >= 5.21.7, Version 4 was not affected\n\n### Workarounds\nIf you cannot upgrade, be sure to check or sanitize parameter strings that are passed to wifiConnections(), wifiNetworks() (string only)\n\n### References\nSee also https://systeminformation.io/security.html\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "systeminformation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.21.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-gx6r-qc2v-3p3v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-42810"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sebhildebrandt/systeminformation/commit/7972565812ccb2a610a22911c54c3446f4171392"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sebhildebrandt/systeminformation"
  }, {
    "type" : "WEB",
    "url" : "https://systeminformation.io/security.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-21T17:15:53Z",
    "nvd_published_at" : "2023-09-21T18:15:12Z"
  }
}