{"schemaVersion":3,"id":"CVE-2021-22880","aliases":["SUSE-SU-2021:3267-1","SUSE-SU-2021:3634-1","UBUNTU-CVE-2021-22880","DEBIAN-CVE-2021-22880","openSUSE-SU-2021:1468-1","openSUSE-SU-2021:3634-1","GHSA-8hc4-xxm3-5ppp"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-02-11T16:11:22.000Z","modified":"2024-08-03T18:58:24.778Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04434,"percentile":0.9128,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04434},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04434,"percentile":0.9128}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04434,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04434,"percentile":0.9128}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_D0B087A741E09D32","name":"Exploit Reference (hackerone.com)","source":"reference","url":"https://hackerone.com/reports/1023899","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"}],"affected":[{"vendor":"debian","product":"rails","name":"rails","label":"rails","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rails","purlType":"deb","versions":[{"text":"< 2:6.0.3.5+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:6.0.3.5+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rails","name":"rails","label":"rails","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rails","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"32","noFixRecorded":false,"fixedIn":null},{"text":"33","noFixRecorded":false,"fixedIn":null}],"versionsText":"32 | 33","eol":{"isEol":true,"eolDate":"2021-05-25T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"32","label":"32","eolFrom":"2021-05-25T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"RubyGems","product":"activerecord","name":"activerecord","label":"activerecord","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/activerecord","purlType":"gem","versions":[{"text":"≥ 5.0.0, < 5.2.4.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.0.3.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0, < 6.1.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0, < 5.2.4.5 | ≥ 6.0.0, < 6.0.3.5 | ≥ 6.1.0, < 6.1.2.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"rubygem-activerecord-5_1&distro=openSUSE Leap 15.2","name":"rubygem-activerecord-5_1","label":"rubygem-activerecord-5_1&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/rubygem-activerecord-5_1&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 5.1.4-lp152.4.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-lp152.4.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"rubygem-activerecord-5_1&distro=openSUSE Leap 15.3","name":"rubygem-activerecord-5_1","label":"rubygem-activerecord-5_1&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/rubygem-activerecord-5_1&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 5.1.4-5.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-5.3.3","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-activerecord-4_2&distro=SUSE OpenStack Cloud Crowbar 8","name":"rubygem-activerecord-4_2","label":"rubygem-activerecord-4_2&distro=SUSE OpenStack Cloud Crowbar 8","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-activerecord-4_2&distro=SUSE OpenStack Cloud Crowbar 8","purlType":"rpm","versions":[{"text":"< 4.2.9-6.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.9-6.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-activerecord-4_2&distro=SUSE OpenStack Cloud Crowbar 9","name":"rubygem-activerecord-4_2","label":"rubygem-activerecord-4_2&distro=SUSE OpenStack Cloud Crowbar 9","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-activerecord-4_2&distro=SUSE OpenStack Cloud Crowbar 9","purlType":"rpm","versions":[{"text":"< 4.2.9-6.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.9-6.6.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15","name":"rubygem-activerecord-5_1","label":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15","purlType":"rpm","versions":[{"text":"< 5.1.4-5.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-5.3.3","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","name":"rubygem-activerecord-5_1","label":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","purlType":"rpm","versions":[{"text":"< 5.1.4-5.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-5.3.3","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","name":"rubygem-activerecord-5_1","label":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","purlType":"rpm","versions":[{"text":"< 5.1.4-5.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-5.3.3","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","name":"rubygem-activerecord-5_1","label":"rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","purlType":"rpm","versions":[{"text":"< 5.1.4-5.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-5.3.3","eol":null,"hubHref":null},{"vendor":"rubyonrails","product":"rails","name":"rails","label":"rails","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2.0, < 5.2.4.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.0.3.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0, < 6.1.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.2.0, < 5.2.4.5 | ≥ 6.0.0, < 6.0.3.5 | ≥ 6.1.0, < 6.1.2.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"rails","label":"Ruby on Rails","category":"framework"}},"hubHref":"/vendor/rubyonrails/rails"}],"affectedCount":13,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://hackerone.com/reports/1023899","label":"hackerone.com/reports/1023899","hostname":"hackerone.com","tags":["X Refsource MISC","REPORT","WEB","Exploit","Patch","Third Party Advisory"]},{"url":"https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129","label":"discuss.rubyonrails.org/t/…","hostname":"discuss.rubyonrails.org","tags":["X Refsource MISC","REPORT","WEB","Mitigation","Patch","Vendor Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://www.debian.org/security/2021/dsa-4929","label":"www.debian.org/security/2021/dsa-4929","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","WEB","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210805-0009/","label":"security.netapp.com/advisory/ntap-20210805-0009/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213267-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20213267-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1182169","label":"bugzilla.suse.com/1182169","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-22880","label":"www.suse.com/security/cve/CVE-2021-22880","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213634-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20213634-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-22880","label":"ubuntu.com/security/CVE-2021-22880","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-22880","label":"www.cve.org/CVERecord?id=CVE-2021-22880","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-22880","label":"security-tracker.debian.org/tracker/CVE-2021-22880","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/RROJLD5MLZPMJEWUQBDZP3I6WJGCWMUE/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/DSBBYVVTCKLFKYMF7OEIC2G2QUWN6ERM/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22880","label":"nvd.nist.gov/vuln/detail/CVE-2021-22880","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/rails/rails","label":"github.com/rails/rails","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2021-22880.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2021-22880.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/ZzUqCh9vyhI","label":"groups.google.com/g/rubyonrails-security/c/ZzUqCh9vyhI","hostname":"groups.google.com","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20210805-0009","label":"security.netapp.com/advisory/ntap-20210805-0009","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DSA-4929-1","OPENSUSE-SU-2024:11826-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11826-1"]},"timeline":[{"kind":"published","date":"2021-02-11T16:11:22.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:58:24.778Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:12:33.589Z","stale":false,"partial":false}}