CVE-2021-22880The 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)…
- 7.5HighCVSS base score
- 4.5%Exploitation in 30 daysEPSS · top 8.4% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By hackerone
- 36 days later
· 36 days later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 4.5% · top 8.4% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
https://github.com/rails/rails
- affected Fixed in 6.1.2.1, 6.0.3.5, 5.2.4.5
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- RubyGemsactiverecordGHSA-8hc4-xxm3-5ppp (opens in a new tab)
References
References6
- https://hackerone.com/reports/1023899 (opens in a new tab)x_refsource_MISCx_transferred
- https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129 (opens in a new tab)x_refsource_MISCx_transferred
- FEDORA-2021-b571fca1b8 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-def0e32233 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- DSA-4929 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- https://security.netapp.com/advisory/ntap-20210805-0009/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0633 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-8hc4-xxm3-5ppp (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-22880)Record last updated .