CVE-2022-44566 json
Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter
published 3y ago modified 16d ago also GHSA-579w-22j4-4749 , EUVD-2023-0336
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
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.
Patch / fix
- rubygems activerecord 6.1.7.1, 7.0.4.1
- activerecord_project activerecord 6.1.7.1, 7.0.4.1
- rails Debian 14, Debian 13, Debian 12 2:6.1.7.3+dfsg-1
debian advisories DEBIAN-CVE-2022-44566
- foreman satellite utils 6.14, satellite capsule 6.14, satellite 6.14 3.7.0.9-1.el8sat
- foreman-cli satellite utils 6.14, satellite 6.14 3.7.0.9-1.el8sat
- foreman-ec2 satellite 6.14 3.7.0.9-1.el8sat
- rubygem-git satellite 6.14 1.18.0-1.el8sat
- puppet-agent satellite capsule 6.14, satellite 6.14 7.26.0-3.el8sat
- puppetserver satellite capsule 6.14, satellite 6.14 7.11.0-1.el8sat
- rubygem-rack satellite capsule 6.14, satellite 6.14 2.2.7-1.el8sat
- foreman-ovirt satellite 6.14 3.7.0.9-1.el8sat
red hat advisories RHSA-2023:6818
- rubygem-activerecord-4_2 OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 4.2.9-6.12.1
- rubygem-activerecord-4_2 OpenStack Cloud Crowbar 9, OpenStack Cloud Crowbar 8 4.2.9-6.9.1
- rubygem-activerecord-5_1 SLE High Availability Extension 15 SP4, SLE High Availability Extension 15 SP3, SLE High Availability Extension 15 SP2 +2 more 5.1.4-150000.5.6.1
suse advisories SUSE-SU-2023:0587-1SUSE-SU-2023:0518-1SUSE-SU-2023:0492-1
- rubygem-activerecord-7.0 openSUSE Tumbleweed 7.0.8.6-1.3
- rubygem-activerecord-7.0 openSUSE Tumbleweed 7.0.8.4-1.1
- rubygem-activerecord-7.0 openSUSE Tumbleweed 7.0.4.1-1.1
opensuse advisories openSUSE-SU-2025:15112-1openSUSE-SU-2024:14069-1openSUSE-SU-2024:12766-1
Is CVE-2022-44566 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-44566 updated cvss 6.5
rubygem-activerecord: Denial of Service
-
Red Hat Satellite 6.14 for RHEL 8 rubygem-activerecord 6.1.7.3-1.el8satfixed: vendor fix RHSA-2023:6818
-
Red Hat Satellite 6.14 for RHEL 8 cjson 1.7.14-5.el8sat, katello 4.9.0-1.el8sat, libsolv 0.7.22-4.el8pc, libcomps 0.1.18-4.el8pc, python-idna 3.3-2.el8pc, candlepin 4.3.1-1.el8sat, +668 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
1.27% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- code.jeremyevans.net https://code.jeremyevans.net/2022-11-01-forcing-sequential-scans-on-postgresql.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | activerecord | <6.1.7.1 >=7.0.0, <7.0.4.1 |
6.1.7.1 7.0.4.1 |
Affected products
- n/a https://github.com/rails/rails
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
- Technology feeds
References
-
discuss.rubyonrails.org
/t/cve-2022-44566-possible-denial-of-service-vulnerability-in-activerecords-postgresql-adapter/82119
web, patch, vendor-advisory
-
github.com
/rails/rails/commit/4f44aa9d514e701ada92b5cf08beccf566eeaebf
web
-
github.com
/rails/rails/commit/82bcdc011e2ff674e7dd8fd8cee3a831c908d29b
web
-
code.jeremyevans.net
/2022-11-01-forcing-sequential-scans-on-postgresql.html
web, exploit, mitigation, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-44566
advisory
-
github.com
/rails/rails
package
-
github.com
/rails/rails/releases/tag/v6.1.7.1
web
-
github.com
/rails/rails/releases/tag/v7.0.4.1
web
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-44566.yml
web
-
mailchi.mp
/railslts/rails-lts-multiple-dos-vulnerabilities-in-rails-rack-and-globalid
web
-
makandracards.com
/railslts/508019-rails-5-2-lts-changelog#section-jan-20th-2023-rails-version-5-2-8-15
web
-
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
- GitHub Advisory GHSA-579w-22j4-4749
- NVD CVE-2022-44566
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.