high7.5
CVE-2021-27290
Regular Expression Denial of Service (ReDoS)
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | ssri | >= 5.2.2, < 6.0.2 | 6.0.2 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Ssri Project | Ssri | from 5.2.2 before 6.0.2 from 7.0.0 before 8.0.1 |
| Oracle | Graalvm | Versions 20.3.3, 21.2.0 |
| Siemens | Sinec Infrastructure Network Services | before 1.0.1.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
- https://doyensec.com/resources/Doyensec_Advisory_ssri_redos.pdf
- https://github.com/yetingli/SaveResults/blob/main/pdf/ssri-redos.pdf
- https://npmjs.com
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://github.com/advisories/GHSA-vx3p-948g-6vhq
- https://nvd.nist.gov/vuln/detail/CVE-2021-27290
- https://github.com/npm/ssri/commit/76e223317d971f19e4db8191865bdad5edee40d2
- https://github.com/npm/ssri/commit/b30dfdb00bb94ddc49a25a85a18fb27afafdfbb1
- https://www.npmjs.com/package/ssri
- https://github.com/npm/ssri/pull/20#issuecomment-842677644
- https://github.com/npm/ssri/commit/809c84d09ea87c3857fa171d42914586899d4538