# CVE-2022-36064: Shescape Inefficient Regular Expression Complexity vulnerability

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 75% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-06T20:55:10.000Z
- Modified: 2026-06-17T04:52:50.480Z
- Weaknesses: CWE-400, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ericcornelissen shescape: >= 1.5.1, < 1.5.10
- shescape_project shescape: from 1.5.1 before 1.5.10

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3> (exploit, issue-tracking, mitigation, third-party-advisory)
- <https://github.com/ericcornelissen/shescape/pull/373> (issue-tracking, patch, third-party-advisory)
- <https://github.com/ericcornelissen/shescape/releases/tag/v1.5.10> (release-notes, third-party-advisory)

## Sources

- CVE List: [CVE-2022-36064](https://www.cve.org/CVERecord?id=CVE-2022-36064), CVE Terms of Use, modified 2025-04-22
- NVD: [CVE-2022-36064](https://nvd.nist.gov/vuln/detail/CVE-2022-36064), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36064 · Whole record: https://cve.day/CVE-2022-36064.json · Rebuilt by cve.day 2026-11-25T22:58:14.739Z
