CVE-2022-44566
HIGH 7.5CVSS 3.1Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter
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.
- Published
- 9 Feb 2023
- Last modified
- 24 Oct 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-579w-22j4-4749
- Sources
- NVDJSONOSV GHSA-579w-22j4-4749JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | activerecord_project | activerecordcpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:* |
< 6.1.7.1 | 6.1.7.1 |
| NVD | activerecord_project | activerecordcpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:* |
>= 7.0.0, < 7.0.4.1 | 7.0.4.1 |
| OSV | RubyGems | activerecord | < 6.1.7.1 | 6.1.7.1 |
| OSV | RubyGems | activerecord | >= 7.0.0, < 7.0.4.1 | 7.0.4.1 |
References
- https://code.jeremyevans.net/2022-11-01-forcing-sequential-scans-on-postgresql.html · Exploit, Mitigation, Third Party Advisory, WEB
- https://discuss.rubyonrails.org/t/cve-2022-44566-possible-denial-of-service-vulnerability-in-activerecords-postgresql-adapter/82119 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-44566 · ADVISORY
- https://github.com/rails/rails/commit/4f44aa9d514e701ada92b5cf08beccf566eeaebf · WEB
- https://github.com/rails/rails/commit/82bcdc011e2ff674e7dd8fd8cee3a831c908d29b · WEB
- https://github.com/rails/rails · PACKAGE
- https://github.com/rails/rails/releases/tag/v6.1.7.1 · WEB
- https://github.com/rails/rails/releases/tag/v7.0.4.1 · WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-44566.yml · WEB
- https://mailchi.mp/railslts/rails-lts-multiple-dos-vulnerabilities-in-rails-rack-and-globalid · WEB
- https://makandracards.com/railslts/508019-rails-5-2-lts-changelog#section-jan-20th-2023-rails-version-5-2-8-15 · WEB
- https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released · WEB
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 9 Feb 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Jan 2023)