7.5
HIGH
CVE-2022-36064
Shescape Bash and Dash Regular Expression Denial of Service
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.

INFO

Published Date :

Sept. 6, 2022, 9:15 p.m.

Last Modified :

Nov. 21, 2024, 7:12 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2022-36064 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Shescape_project shescape
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-36064.

URL Resource
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
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
https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3 Exploit Issue Tracking Mitigation Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-36064 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-36064 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/ericcornelissen/shescape/pull/373
    Added Reference https://github.com/ericcornelissen/shescape/releases/tag/v1.5.10
    Added Reference https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Reanalysis by [email protected]

    Jul. 21, 2023

    Action Type Old Value New Value
    Added CWE NIST CWE-1333
  • Initial Analysis by [email protected]

    Sep. 09, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://github.com/ericcornelissen/shescape/pull/373 No Types Assigned https://github.com/ericcornelissen/shescape/pull/373 Issue Tracking, Patch, Third Party Advisory
    Changed Reference Type https://github.com/ericcornelissen/shescape/releases/tag/v1.5.10 No Types Assigned https://github.com/ericcornelissen/shescape/releases/tag/v1.5.10 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3 No Types Assigned https://github.com/ericcornelissen/shescape/security/advisories/GHSA-gp75-h7j6-5pv3 Exploit, Issue Tracking, Mitigation, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:shescape_project:shescape:*:*:*:*:*:node.js:*:* versions from (including) 1.5.1 up to (excluding) 1.5.10
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-36064 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-36064 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.19 }} -0.04%

score

0.56155

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability