{"cve":"CVE-2021-22880","nvd":{"published":"2021-02-11T18:15:17.333","modified":"2026-06-17T03:37:56.260","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-400"],"references":["https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129","https://hackerone.com/reports/1023899","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/","https://security.netapp.com/advisory/ntap-20210805-0009/"],"products":["fedoraproject:fedora","rubyonrails:rails"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-22880","score":0.04434,"percentile":0.91388,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8hc4-xxm3-5ppp","url":"https://osv.dev/vulnerability/GHSA-8hc4-xxm3-5ppp","summary":"Active Record subject to Regular Expression Denial-of-Service (ReDoS)","modified":"2024-02-20T05:21:22.451179Z","packages":[{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=5.0.0 <5.2.4.5"],"fixed":["5.2.4.5"]},{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=6.0.0 <6.0.3.5"],"fixed":["6.0.3.5"]},{"ecosystem":"RubyGems","name":"activerecord","purl":"pkg:gem/activerecord","ranges":[">=6.1.0 <6.1.2.1"],"fixed":["6.1.2.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}