CVE-2023-40185 Shescape on Windows escaping may be bypassed in threaded context
HighCVSS 8.6
EPSS 0.68%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm shescape(npm) | < 1.7.4 | 1.7.4 | Fixed |
| shescape project shescape | < 1.7.4 | 1.7.4 | Fixed |
| ericcornelissen shescape | = < 1.7.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm shescape(npm) | < 1.7.4 | 1.7.4 |
| ericcornelissen shescape | = < 1.7.4 | No fix listed |
| shescape project shescape | < 1.7.4 | 1.7.4 |
References
- https://github.com/ericcornelissen/shescape/security/advisories/GHSA-j55r-787p-m549 exploit patch vendor-advisory
- https://github.com/ericcornelissen/shescape/pull/1142 patch
- https://github.com/ericcornelissen/shescape/commit/0b976dab645abf45ffd85e74a8c6e51ee2f42d63 patch
- https://github.com/ericcornelissen/shescape/releases/tag/v1.7.4 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product