7.5high
regex injection leading to DoS
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 3.30% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
Description
User controlled `request.getHeader("Referer")`, `request.getRequestURL()` and `request.getQueryString()` are used to build and run a regex expression. The attacker doesn't have to use a browser and may send a specially crafted Referer header programmatically. Since the attacker controls the string and the regex pattern he may cause a ReDoS by regex catastrophic backtracking on the server side. This problem has been fixed in Roller 6.0.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Roller | from Apache Roller before 6.0.2 | CVE List |
| apache roller | before 6.0.2 | NVD |
All scores
| 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
User controlled `request.getHeader("Referer")`, `request.getRequestURL()` and `request.getQueryString()` are used to build and run a regex expression. The attacker doesn't have to use a browser and may send a specially crafted Referer header programmatically. Since the attacker controls the string and the regex pattern he may cause a ReDoS by regex catastrophic backtracking on the server side. This problem has been fixed in Roller 6.0.2.
NVD (es)
Los controles de usuario "request.getHeader("Referer")", "request.getRequestURL()" y "request.getQueryString()" son usados para construir y ejecutar una expresión regex. El atacante no tiene que usar un navegador y puede enviar un encabezado Referer especialmente diseñada mediante programación. Dado que el atacante controla la cadena y el patrón regex, puede causar un ReDoS mediante el retroceso catastrófico de regex en el lado del servidor. Este problema ha sido corregido en Roller versión 6.0.2.
References
| https://lists.apache.org/thread.html/r9d967d80af941717573e531db2c7353a90bfd0886e9b5d5d79f75506%40%3Cuser.roller.apache.org%3E | mailing-list, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2021/08/18/1 | mailing-list, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33580 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-33580 changed 2026-06-17 | Public domain |