{"id":"CVE-2022-44566","aliases":["CVE-2022-44566","GHSA-579w-22j4-4749"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"There is a potential denial of service vulnerability present in ActiveRecord's PostgreSQL adapter.\n\nThis has been assigned the CVE identifier CVE-2022-44566.\n\nVersions Affected: All. Not affected: None.\n\n## Fixed Versions\n\n- 2.3.18.47 (Rails LTS, which is a paid service and not part of the rubygem)\n- 3.2.22.34 (Rails LTS, which is a paid service and not part of the rubygem)\n- 4.2.11.27 (Rails LTS, which is a paid service and not part of the rubygem)\n- 5.2.8.15 (Rails LTS, which is a paid service and not part of the rubygem)\n- 6.1.7.1\n- 7.0.4.1\n\n## Impact\n\nIn ActiveRecord < 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.\n\n## Releases\n\nThe fixed releases are available at the normal locations.\n\n## Workarounds\n\nEnsure that user supplied input which is provided to ActiveRecord clauses do not contain integers wider than a signed 64bit representation or floats. \n\n## Patches\n\nTo aid users who aren't able to upgrade immediately we have provided patches for the supported release series in accordance with our maintenance policy 1 regarding security issues. They are in git-am format and consist of a single changeset.\n\n 6-1-Added-integer-width-check-to-PostgreSQL-Quoting.patch - Patch for 6.1 series\n 7-0-Added-integer-width-check-to-PostgreSQL-Quoting.patch - Patch for 7.0 series","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de denegación de servicio presente en el adaptador de PostgreSQL de ActiveRecord anterior a 7.0.4.1 y anterior a 6.1.7.1. Cuando se proporciona un valor fuera del rango de un entero con signo de 64 bits al adaptador de conexión de PostgreSQL, tratará el tipo de columna de destino como numérico. Comparar valores enteros con valores numéricos puede resultar en un escaneo secuencial lento, lo que puede llevar a una posible Denegación de Servicio.","source":"nvd"}],"published":"2023-01-18T18:21:12.000Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"7.0.4.1, 6.1.7.1","status":"affected"}],"product":"https://github.com/rails/rails","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.1.7.1"}],"ecosystem":"RubyGems","package":"activerecord","purl":"pkg:gem/activerecord","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"7.0.0","status":"affected","fixed":"7.0.4.1"}],"ecosystem":"RubyGems","package":"activerecord","purl":"pkg:gem/activerecord","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"6.1.7.1"},{"status":"affected","introduced":"7.0.0","fixed":"7.0.4.1"}],"vendor":"activerecord_project","product":"activerecord","cpe":"cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://discuss.rubyonrails.org/t/cve-2022-44566-possible-denial-of-service-vulnerability-in-activerecords-postgresql-adapter/82119","tags":["patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://code.jeremyevans.net/2022-11-01-forcing-sequential-scans-on-postgresql.html","tags":["exploit","mitigation","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-44566","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/4f44aa9d514e701ada92b5cf08beccf566eeaebf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/commit/82bcdc011e2ff674e7dd8fd8cee3a831c908d29b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/releases/tag/v6.1.7.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rails/rails/releases/tag/v7.0.4.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-44566.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://mailchi.mp/railslts/rails-lts-multiple-dos-vulnerabilities-in-rails-rack-and-globalid","tags":["web"],"sources":["ghsa"]},{"url":"https://makandracards.com/railslts/508019-rails-5-2-lts-changelog#section-jan-20th-2023-rails-version-5-2-8-15","tags":["web"],"sources":["ghsa"]},{"url":"https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"hackerone","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-25T13:43:31.851Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-44566","url":"https://www.cve.org/CVERecord?id=CVE-2022-44566","licence":"CVE Terms of Use","modified":"2025-03-25T13:43:54.894Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-579w-22j4-4749","url":"https://github.com/advisories/GHSA-579w-22j4-4749","licence":"CC-BY-4.0","modified":"2026-02-03T03:17:25.303Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-44566","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-44566","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:58:18.551Z","epss":{"score":0.01278,"percentile":0.70818,"date":"2026-12-01T12:00:22.000Z"}}