https://github.com/rails/rails
At a glance
- Source
- NVD
- EPSS
- EPSS 4.43 % · percentile 91 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- hackerone
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-400 — Uncontrolled Resource Consumption
References
- https://hackerone.com/reports/1023899
- https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/
- https://www.debian.org/security/2021/dsa-4929
- https://security.netapp.com/advisory/ntap-20210805-0009/
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-8hc4-xxm3-5ppp — Active Record subject to Regular Expression Denial-of-Service (ReDoS)
European references
- ENISA EUVD · EUVD-2021-0633
- GCVE · GCVE-0-2021-22880
CERT-FR advisories
- CERTFR-2021-AVI-115 — Multiples vulnérabilités dans Ruby on Rails · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*≥ 4.2.0 < 5.2.4.5cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*≥ 6.0.0 < 6.0.3.5cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*≥ 6.1.0 < 6.1.2.1cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| https://github.com/rails/rails | affected Fixed in 6.1.2.1, 6.0.3.5, 5.2.4.5 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |