SecurityContext

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

IdName
CWE-150Improper Neutralization of Escape, Meta, or Control Sequences

Public exploits

UrlSourceAdded date
https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549nvd2023-08-23

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63Patch
https://github.com/ericcornelissen/shescape/pull/1142Patch
https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549Exploit, Patch, Vendor Advisory
https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
shescape_project:shescape< 1.7.4yesnvd/v1/products/shescape_project/shescape

Projects

RepositoryLink kindsIndexedUrl
ericcornelissen/shescapecommit, package, pull, releases, security_advisoryyes/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