{"answers":{"affected":"6 open source packages ship an affected version, including activerecord. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-22880 in the wild and no public exploit code.","fix":"Upgrade activerecord to a fixed version for your release line: 5.2.4.5, 6.0.3.5 or 6.1.2.1.","what":"CVE-2021-22880 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 11 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22880 and fix it if it is affected.\n\nWhat it is: CVE-2021-22880 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 11 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-22880 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- activerecord (RubyGems): affected from 5.0.0; fixed in 5.2.4.5\n- activerecord (RubyGems): affected from 5.0.0; fixed in 5.2.4.5\n- activerecord (RubyGems): affected from 6.0.0; fixed in 6.0.3.5\n- activerecord (RubyGems): affected from 6.0.0; fixed in 6.0.3.5\n- activerecord (RubyGems): affected from 6.1.0; fixed in 6.1.2.1\n- activerecord (RubyGems): affected from 6.1.0; fixed in 6.1.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-22880/ (Markdown: https://insights.sbomify.com/CVE-2021-22880/index.md)","id":"CVE-2021-22880","markdown":"https://insights.sbomify.com/CVE-2021-22880/index.md","name":"CVE-2021-22880","record":{"aliases":["DEBIAN-CVE-2021-22880","GHSA-8hc4-xxm3-5ppp","SUSE-SU-2021:3267-1","SUSE-SU-2021:3634-1","UBUNTU-CVE-2021-22880","openSUSE-SU-2021:1468-1","openSUSE-SU-2021:3634-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby on Rails","requires_auth":"none","summary":"Attackers can cause denial of service in Rails applications using PostgreSQL money columns via crafted input triggering ReDoS.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"rails","vendor":"rubyonrails"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["RubyGems","SUSE:Linux Enterprise High Availability Extension 15","SUSE:Linux Enterprise High Availability Extension 15 SP1","SUSE:Linux Enterprise High Availability Extension 15 SP2","SUSE:Linux Enterprise High Availability Extension 15 SP3","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.2","openSUSE:Leap 15.3"],"exploits":{"exploitdb":0,"first_seen":"2023-10-30","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-10-30T08:30:12Z","kind":"github_poc","ref":"https://github.com/halkichi0308/CVE-2021-22880","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Active Record subject to Regular Expression Denial-of-Service (ReDoS)","id":"CVE-2021-22880","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"fedoraproject:fedora","products":["fedoraproject:fedora","rubyonrails:rails"],"type":"denial_of_service","year":"2021"},"n_packages":14,"n_references":6,"next":{"headline":"Actionpack Open Redirect Vulnerability","id":"CVE-2021-22881"},"packages":[{"ecosystem":"RubyGems","fixed":["5.2.4.5"],"introduced":["5.0.0"],"last_affected":[],"package":"activerecord","purl":null,"source":"GHSA-8hc4-xxm3-5ppp"},{"ecosystem":"RubyGems","fixed":["5.2.4.5"],"introduced":["5.0.0"],"last_affected":[],"package":"activerecord","purl":"pkg:gem/activerecord","source":"GHSA-8hc4-xxm3-5ppp"},{"ecosystem":"RubyGems","fixed":["6.0.3.5"],"introduced":["6.0.0"],"last_affected":[],"package":"activerecord","purl":null,"source":"GHSA-8hc4-xxm3-5ppp"},{"ecosystem":"RubyGems","fixed":["6.0.3.5"],"introduced":["6.0.0"],"last_affected":[],"package":"activerecord","purl":"pkg:gem/activerecord","source":"GHSA-8hc4-xxm3-5ppp"},{"ecosystem":"RubyGems","fixed":["6.1.2.1"],"introduced":["6.1.0"],"last_affected":[],"package":"activerecord","purl":null,"source":"GHSA-8hc4-xxm3-5ppp"},{"ecosystem":"RubyGems","fixed":["6.1.2.1"],"introduced":["6.1.0"],"last_affected":[],"package":"activerecord","purl":"pkg:gem/activerecord","source":"GHSA-8hc4-xxm3-5ppp"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15","fixed":["5.1.4-5.3.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5_1","purl":"pkg:rpm/suse/rubygem-activerecord-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015","source":"SUSE-SU-2021:3634-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP1","fixed":["5.1.4-5.3.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5_1","purl":"pkg:rpm/suse/rubygem-activerecord-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP1","source":"SUSE-SU-2021:3634-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP2","fixed":["5.1.4-5.3.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5_1","purl":"pkg:rpm/suse/rubygem-activerecord-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP2","source":"SUSE-SU-2021:3634-1"},{"ecosystem":"SUSE:Linux Enterprise High Availability Extension 15 SP3","fixed":["5.1.4-5.3.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5_1","purl":"pkg:rpm/suse/rubygem-activerecord-5_1\u0026distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP3","source":"SUSE-SU-2021:3634-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["4.2.9-6.6.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-4_2","purl":"pkg:rpm/suse/rubygem-activerecord-4_2\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2021:3267-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 9","fixed":["4.2.9-6.6.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-4_2","purl":"pkg:rpm/suse/rubygem-activerecord-4_2\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%209","source":"SUSE-SU-2021:3267-1"},{"ecosystem":"openSUSE:Leap 15.2","fixed":["5.1.4-lp152.4.3.1"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5_1","purl":"pkg:rpm/opensuse/rubygem-activerecord-5_1\u0026distro=openSUSE%20Leap%2015.2","source":"openSUSE-SU-2021:1468-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["5.1.4-5.3.3"],"introduced":["0"],"last_affected":[],"package":"rubygem-activerecord-5_1","purl":"pkg:rpm/opensuse/rubygem-activerecord-5_1\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2021:3634-1"}],"prev":{"headline":"Command injection in Nextcloud Desktop Client","id":"CVE-2021-22879"},"products":["https://github.com/rails/rails"],"published":"2021-02-11","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can cause denial of service in Rails applications using PostgreSQL money columns via crafted input triggering ReDoS.","url":"https://insights.sbomify.com/CVE-2021-22880/"}