7.5high
Regular Expression Denial of Service (ReDoS)
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 4.72% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vx3p-948g-6vhq
Description
ssri 5.2.2-8.0.0, fixed in 8.0.1, processes SRIs using a regular expression which is vulnerable to a denial of service. Malicious SRIs could take an extremely long time to process, leading to denial of service. This issue only affects consumers using the strict option.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ssri (npm) | from 5.2.2 before 6.0.2, from 7.0.0 before 7.1.1, from 8.0.0 before 8.0.1 | GitHub Advisory Database |
| ssri_project ssri | from 5.2.2 before 6.0.2, from 7.0.0 before 8.0.1 | NVD |
| oracle graalvm | 20.3.3, 21.2.0 | NVD |
| siemens sinec_infrastructure_network_services | before 1.0.1.1 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
ssri 5.2.2-8.0.0, fixed in 8.0.1, processes SRIs using a regular expression which is vulnerable to a denial of service. Malicious SRIs could take an extremely long time to process, leading to denial of service. This issue only affects consumers using the strict option.
GitHub Advisory Database
npm ssri 5.2.2-6.0.1 and 7.0.0-8.0.0, processes SRIs using a regular expression which is vulnerable to a denial of service. Malicious SRIs could take an extremely long time to process, leading to denial of service. This issue only affects consumers using the strict option.
NVD (es)
ssri versión 5.2.2-8.0.0, corregido en versión 8.0.1, procesa los SRI usando una expresión regular que es vulnerable a una denegación de servicio. Los SRI maliciosos pueden tardar mucho en procesarse, conllevando a una denegación del servicio. Este problema solo afecta a consumidores que usan la opción estricta
References
| https://npmjs.com | product, web | |
| https://www.oracle.com/security-alerts/cpuoct2021.html | patch, third-party-advisory, web | |
| https://doyensec.com/resources/Doyensec_Advisory_ssri_redos.pdf | exploit, patch, third-party-advisory, web | |
| https://github.com/yetingli/SaveResults/blob/main/pdf/ssri-redos.pdf | exploit, third-party-advisory, web | |
| https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-27290 | advisory | |
| https://github.com/npm/ssri/pull/20#issuecomment-842677644 | web | |
| https://github.com/npm/ssri/commit/76e223317d971f19e4db8191865bdad5edee40d2 | web | |
| https://github.com/npm/ssri/commit/809c84d09ea87c3857fa171d42914586899d4538 | web | |
| https://github.com/npm/ssri/commit/b30dfdb00bb94ddc49a25a85a18fb27afafdfbb1 | web | |
| https://github.com/npm/ssri | package | |
| https://www.npmjs.com/package/ssri | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-27290 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vx3p-948g-6vhq changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-27290 changed 2026-06-17 | Public domain |