7.5
HIGH
CVE-2022-25918
Shescape Regular Expression Denial of Service (ReDoS)
Description

The package shescape from 1.5.10 and before 1.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the escape function in index.js, due to the usage of insecure regex in the escapeArgBash function.

INFO

Published Date :

Oct. 27, 2022, 10:15 a.m.

Last Modified :

Nov. 21, 2024, 6:53 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2022-25918 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

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-25918 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-25918 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/blob/main/src/unix.js%23L52
    Added Reference https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9
    Added Reference https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1
    Added Reference https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CWE Remap by [email protected]

    Aug. 08, 2023

    Action Type Old Value New Value
    Changed CWE NVD-CWE-Other CWE-1333
  • Initial Analysis by [email protected]

    Oct. 28, 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/blob/main/src/unix.js%23L52 No Types Assigned https://github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52 Broken Link
    Changed Reference Type https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9 No Types Assigned https://github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb65741643358f9 Patch, Third Party Advisory
    Changed Reference Type https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1 No Types Assigned https://github.com/ericcornelissen/shescape/releases/tag/v1.6.1 Release Notes, Third Party Advisory
    Changed Reference Type https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 No Types Assigned https://security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 Exploit, Patch, Third Party Advisory
    Added CWE NIST NVD-CWE-Other
    Added CPE Configuration OR *cpe:2.3:a:shescape_project:shescape:1.5.10:*:*:*:*:node.js:*:* *cpe:2.3:a:shescape_project:shescape:1.6.0:*:*:*:*:node.js:*:*
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-25918 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-25918 weaknesses.

Exploit Prediction

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

0.17 }} -0.03%

score

0.54698

percentile

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