{"id":"CVE-2021-22880","published":"2021-02-11T16:11:22Z","modified":"2024-08-03T18:58:24Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04487,"percentile":0.91522,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://hackerone.com/reports/1023899","tags":["x_refsource_MISC"]},{"url":"https://discuss.rubyonrails.org/t/cve-2021-22880-possible-dos-vulnerability-in-active-record-postgresql-adapter/77129","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XQ3NS4IBYE2I3MVMGAHFZBZBIZGHXHT3/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MO5OJ3F4ZL3UXVLJO6ECANRVZBNRS2IH/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.debian.org/security/2021/dsa-4929","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.netapp.com/advisory/ntap-20210805-0009/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.3,"factors":[{"name":"EPSS percentile","points":18.3},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-10-30","earliestUrl":"https://github.com/halkichi0308/CVE-2021-22880","repos":[{"name":"halkichi0308/CVE-2021-22880","url":"https://github.com/halkichi0308/CVE-2021-22880","stars":1,"created":"2023-10-30"}]},"first":{"date":"2023-10-30","source":"PoC-in-GitHub","url":"https://github.com/halkichi0308/CVE-2021-22880"},"provenance":"source"},"affectedVersions":[{"vendor":"n/a","product":"https://github.com/rails/rails","versions":["Fixed in 6.1.2.1, 6.0.3.5, 5.2.4.5"]}],"affected":[{"ecosystem":"RubyGems","package":"activerecord","vulnerableRanges":[">=5.0.0, <5.2.4.5",">=6.0.0, <6.0.3.5",">=6.1.0, <6.1.2.1"],"patched":["5.2.4.5","6.0.3.5","6.1.2.1"],"from":["GHSA-8hc4-xxm3-5ppp"],"provenance":"source"}],"euvd":{"id":"EUVD-2021-0633","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2013-3221","published":"2013-04-22","fixed":"4.2.0","kev":false},{"cve":"CVE-2016-6317","published":"2016-09-07","fixed":"4.2.7.1","kev":false},{"cve":"CVE-2015-7577","published":"2016-02-16","fixed":"5.0.0.beta1.1","kev":false},{"cve":"CVE-2021-22880","published":"2021-02-11","fixed":"6.1.2.1","kev":false},{"cve":"CVE-2022-32224","published":"2022-12-05","fixed":"7.0.3.1","kev":false,"link":{"from":"CVE-2021-22880","to":"CVE-2022-32224","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:activerecord","fromFixed":"5.2.4.5","toFixed":"5.2.8.1","daysApart":662},{"kind":"version-step","provenance":"source","package":"RubyGems:activerecord","fromFixed":"6.1.2.1","toFixed":"6.1.6.1","daysApart":662}]}},{"cve":"CVE-2022-44566","published":"2023-02-09","fixed":"7.0.4.1","kev":false},{"cve":"CVE-2023-22794","published":"2023-02-09","fixed":"7.0.4.1","kev":false}],"package":"RubyGems:activerecord"}}