7.5high
Active Record subject to Regular Expression Denial-of-Service (ReDoS)
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 4.49% (higher than 91% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- GHSA-8hc4-xxm3-5ppp
Description
The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 suffers from a regular expression denial of service (REDoS) vulnerability. Carefully crafted input can cause the input validation in the `money` type of the PostgreSQL adapter in Active Record to spend too much time in a regular expression, resulting in the potential for a DoS attack. This only impacts Rails applications that are using PostgreSQL along with money type columns that take user input.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| https://github.com/rails/rails | Fixed in 6.1.2.1, 6.0.3.5, 5.2.4.5 | CVE List |
| activerecord (RubyGems) | from 5.0.0 before 5.2.4.5, from 6.0.0 before 6.0.3.5, from 6.1.0 before 6.1.2.1 | GitHub Advisory Database |
| rubyonrails rails | from 4.2.0 before 5.2.4.5, from 6.0.0 before 6.0.3.5, from 6.1.0 before 6.1.2.1 | NVD |
| fedoraproject fedora | 32, 33 | 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 | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
The PostgreSQL adapter in Active Record before 6.1.2.1, 6.0.3.5, 5.2.4.5 suffers from a regular expression denial of service (REDoS) vulnerability. Carefully crafted input can cause the input validation in the `money` type of the PostgreSQL adapter in Active Record to spend too much time in a regular expression, resulting in the potential for a DoS attack. This only impacts Rails applications that are using PostgreSQL along with money type columns that take user input.
NVD (es)
El adaptador PostgreSQL en Active Record versiones anteriores a 6.1.2.1, 6.0.3.5, 5.2.4.5, sufre una vulnerabilidad de denegación de servicio de expresión regular (REDoS). Una entrada cuidadosamente diseñada puede causar que la comprobación de la entrada en el tipo "money" del adaptador de PostgreSQL en Active Record pase demasiado tiempo en una expresión regular, resultando en la posibilidad de un ataque DoS. Esto solo afecta a las aplicaciones Rails que usan PostgreSQL junto con las columnas de tipo money que toman la entrada del usuario
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-22880 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8hc4-xxm3-5ppp changed 2024-02-20 | CC-BY-4.0 |
| NVD | CVE-2021-22880 changed 2026-06-17 | Public domain |