CVE-2022-36064 Details
Description
Shescape is a shell escape package for JavaScript. An Inefficient Regular Expression Complexity vulnerability impacts users that use Shescape to escape arguments for the Unix shells `Bash` and `Dash`, or any not-officially-supported Unix shell; and/or using the `escape` or `escapeAll` functions with the `interpolation` option set to `true`. An attacker can cause polynomial backtracking or quadratic runtime in terms of the input string length due to two Regular Expressions in Shescape that are vulnerable to Regular Expression Denial of Service (ReDoS). This bug has been patched in v1.5.10. For `Dash` only, this bug has been patched since v1.5.9. As a workaround, a maximum length can be enforced on input strings to Shescape to reduce the impact of the vulnerability. It is not recommended to try and detect vulnerable input strings, as the logic for this may end up being vulnerable to ReDoS itself.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ericcornelissen/shescape/pull/373 | CVE | Issue TrackingPatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.5.10 | CVE | Release NotesThird Party Advisory |
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3 | CVE | ExploitIssue TrackingMitigationThird Party Advisory |
| https://github.com/ericcornelissen/shescape/pull/373 | [email protected] | Issue TrackingPatchThird Party Advisory |
| https://github.com/ericcornelissen/shescape/releases/tag/v1.5.10 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3 | [email protected] | ExploitIssue TrackingMitigationThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| shescape project shescape | >= 1.5.1, < 1.5.10 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jul 21, 2023 | Reanalysis | [email protected] |
| Sep 9, 2022 | Initial Analysis | [email protected] |