CVE-2023-26156: Chromedriver Chromedriver Command Injection Vulnerability Vulnerability
MODERATECVE-2023-26156 is a MODERATE (CVSS 5.6) chromedriver command injection vulnerability vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Chromedriver libraries in the npm ecosystem. The issue involves chromedriver command injection vulnerability. Remediation is available by upgrading affected packages to version 119.0.1.
CVE-2023-26156 at a Glance
Security Impact
CVSS: 5.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2023-26156
To remediate this vulnerability, upgrade all affected Chromedriver 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 chromedriver@119.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls chromedriver
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2023-26156, inspect your project dependencies using npm:
npm ls chromedriver
Analyze the terminal output to locate any version of Chromedriver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 119.0.1), your application is affected.
Note: The npm ls chromedriver 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Chromedriver, 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-26156 Affected Chromedriver Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
chromedriver
|
npm |
< 119.0.1
|
119.0.1
|
References
Frequently Asked Questions
What is CVE-2023-26156?
Which Chromedriver versions are affected?
What version fixes CVE-2023-26156?
Is chromedriver affected?
What is the CVSS score of CVE-2023-26156?
What CWE is associated with CVE-2023-26156?
How can I check npm dependencies for CVE-2023-26156?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hm92-vgmw-qfmx",
"modified" : "2023-11-17T22:12:01Z",
"published" : "2023-11-09T06:30:28Z",
"aliases" : [ "CVE-2023-26156" ],
"summary" : "chromedriver Command Injection vulnerability",
"details" : "Versions of the package chromedriver before 119.0.1 are vulnerable to Command Injection when setting the chromedriver.path to an arbitrary system binary. This could lead to unauthorized access and potentially malicious actions on the host system.\n\n**Note:**\n\nAn attacker must have access to the system running the vulnerable chromedriver library to exploit it. The success of exploitation also depends on the permissions and privileges of the process running chromedriver. ",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "chromedriver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "119.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-26156"
}, {
"type" : "WEB",
"url" : "https://github.com/giggio/node-chromedriver/commit/de961e34e023afcf4fa5c0faeeec69aaa6c3c815"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/mcoimbra/47b1da554a80795c45126d51e41b2b18"
}, {
"type" : "WEB",
"url" : "https://github.com/giggio/node-chromedriver"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-CHROMEDRIVER-6049539"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-09T22:07:39Z",
"nvd_published_at" : "2023-11-09T05:15:09Z"
}
}