CVE-2022-25918
Summary
| CVE | CVE-2022-25918 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-10-27 10:15:00 UTC |
| Updated | 2023-08-08 14:22:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-1333
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Shescape Project | Shescape | 1.5.10 | All | All | All |
| Application | Shescape Project | Shescape | 1.6.0 | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/ericcornelissen/shescape/blob/main/src/unix.js%23L52 | MISC | github.com | |
| Release Release v1.6.1 · ericcornelissen/shescape · GitHub | MISC | github.com | |
| Merge pull request from GHSA-cr84-xvw4-qx3c · ericcornelissen/shescape@552e8ea · GitHub | MISC | github.com | |
| Regular Expression Denial of Service (ReDoS) in shescape | CVE-2022-25918 | Snyk | MISC | security.snyk.io | |
| shescape/unix.js at main · ericcornelissen/shescape · GitHub | MITRE | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
LEGACY: Elliot Ward - Snyk Research Team
There are currently no legacy QID mappings associated with this CVE.