# CVE-2022-44566: Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.28%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-18T18:21:12.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-579w-22j4-4749
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: hackerone

## 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.

(As written by CVE List.)

## Affected

- https://github.com/rails/rails: 7.0.4.1, 6.1.7.1
- activerecord (RubyGems): before 6.1.7.1; from 7.0.0 before 7.0.4.1
- activerecord_project activerecord: before 6.1.7.1; from 7.0.0 before 7.0.4.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## 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)

## Sources

- CVE List: [CVE-2022-44566](https://www.cve.org/CVERecord?id=CVE-2022-44566), CVE Terms of Use, modified 2025-03-25
- GitHub Advisory Database: [GHSA-579w-22j4-4749](https://github.com/advisories/GHSA-579w-22j4-4749), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2022-44566](https://nvd.nist.gov/vuln/detail/CVE-2022-44566), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2022-44566 · Whole record: https://cve.day/CVE-2022-44566.json · Rebuilt by cve.day 2026-11-25T22:58:18.551Z
