High severityNVD Advisory· Published Feb 9, 2023· Updated Mar 25, 2025
CVE-2022-44566
CVE-2022-44566
Description
A denial of service vulnerability present in ActiveRecord's PostgreSQL adapter <7.0.4.1 and <6.1.7.1. When a value outside the range for a 64bit signed integer is provided to the PostgreSQL connection adapter, it will treat the target column type as numeric. Comparing integer values against numeric values can result in a slow sequential scan resulting in potential Denial of Service.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
activerecordRubyGems | < 6.1.7.1 | 6.1.7.1 |
activerecordRubyGems | >= 7.0.0, < 7.0.4.1 | 7.0.4.1 |
Affected products
9- ghsa-coords9 versionspkg:gem/activerecordpkg:rpm/opensuse/rubygem-activerecord-5_1&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/rubygem-activerecord-7.0&distro=openSUSE%20Tumbleweedpkg:rpm/suse/rubygem-activerecord-4_2&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/rubygem-activerecord-4_2&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP1pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP2pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP3pkg:rpm/suse/rubygem-activerecord-5_1&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP4
< 6.1.7.1+ 8 more
- (no CPE)range: < 6.1.7.1
- (no CPE)range: < 5.1.4-150000.5.6.1
- (no CPE)range: < 7.0.4.1-1.1
- (no CPE)range: < 4.2.9-6.9.1
- (no CPE)range: < 4.2.9-6.9.1
- (no CPE)range: < 5.1.4-150000.5.6.1
- (no CPE)range: < 5.1.4-150000.5.6.1
- (no CPE)range: < 5.1.4-150000.5.6.1
- (no CPE)range: < 5.1.4-150000.5.6.1
Patches
Vulnerability mechanics
References
12- github.com/advisories/GHSA-579w-22j4-4749ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-44566ghsaADVISORY
- code.jeremyevans.net/2022-11-01-forcing-sequential-scans-on-postgresql.htmlghsaWEB
- discuss.rubyonrails.org/t/cve-2022-44566-possible-denial-of-service-vulnerability-in-activerecords-postgresql-adapter/82119ghsaWEB
- github.com/rails/rails/commit/4f44aa9d514e701ada92b5cf08beccf566eeaebfghsaWEB
- github.com/rails/rails/commit/82bcdc011e2ff674e7dd8fd8cee3a831c908d29bghsaWEB
- github.com/rails/rails/releases/tag/v6.1.7.1ghsaWEB
- github.com/rails/rails/releases/tag/v7.0.4.1ghsaWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-44566.ymlghsaWEB
- mailchi.mp/railslts/rails-lts-multiple-dos-vulnerabilities-in-rails-rack-and-globalidghsaWEB
- makandracards.com/railslts/508019-rails-5-2-lts-changelogghsaWEB
- rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-releasedghsaWEB
News mentions
0No linked articles in our index yet.