CVE-2023-40185: shescape - Command Injection
- Cve: CVE-2023-40185
- Name: shescape - Command Injection
- Description: shescape is simple shell escape library for JavaScript. This may impact users that use Shescape on Windows in a threaded context. The vulnerability can result in Shescape escaping (or quoting) for the wrong shell, thus allowing attackers to bypass protections depending on the combination of expected and used shell. This bug has been patched in version 1.7.4.
- Impact: Attackers can bypass shell protections, potentially leading to command injection or execution of arbitrary commands.
- Remediation: Update to version 1.7.4 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
- Epss score: 0.00675
- Epss percentile: 0.52949
- Assignee: [email protected]
- Published at: 2023-08-23T21:15:09Z
- Age in days: 1189
- Modified at: 2026-06-17T06:16:37Z
- Patch available: yes
- Public exploits total: 1
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-40185
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-150 | Improper Neutralization of Escape, Meta, or Control Sequences |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549 | nvd | 2023-08-23 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| shescape_project:shescape | < 1.7.4 | yes | nvd | /v1/products/shescape_project/shescape |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ericcornelissen/shescape | commit, package, pull, releases, security_advisory | yes | /v1/repositories/ericcornelissen/shescape |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2023-08-23
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts