Vulnerability in Shescape Project
CVE-2022-25918
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS: 0.014 (71.2th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 71st percentile — 71.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.013 · newest: 0.014 · change: +0.000
Affected products
- Shescape Project — versions 1.5.10, 1.6.0
- Shescape — versions 1.5.10, unspecified
Weakness classification (CWE)
References
- security.snyk.io/vuln/SNYK-JS-SHESCAPE-3061108 (Exploit, Patch, Third Party Advisory)
- github.com/ericcornelissen/shescape/blob/main/src/unix.js#L52 (Broken Link)
- github.com/ericcornelissen/shescape/commit/552e8eab56861720b1d4e5474fb657416433… (Patch, Third Party Advisory)
- github.com/ericcornelissen/shescape/releases/tag/v1.6.1 (Third Party Advisory, Release Notes)
Frequently asked questions
- What is CVE-2022-25918?
- CVE-2022-25918 is a medium-severity vulnerability in Shescape Project, classified under Inefficient Regular Expression Complexity. CVSS score: 5.3/10. Published 2022-10-27.
- How severe is CVE-2022-25918?
- Medium severity. CVSS v3 base score is 5.3 out of 10.