CVE-2023-42810: Systeminformation Systeminformation SSID Command Injection Vulnerability Vulnerability
CRITICALCVE-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
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).
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.
npm install systeminformation@5.21.7
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
CVE-2023-42810 Affected Systeminformation Versions
1 component(s)| 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?
Which Systeminformation versions are affected?
What version fixes CVE-2023-42810?
Is systeminformation affected?
What is the CVSS score of CVE-2023-42810?
What CWE is associated with CVE-2023-42810?
How can I check npm dependencies for CVE-2023-42810?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}