CVE-2022-44566
high
CVSS v3
—
CVSS v2
—
VIR risk
8.0
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.
Predictions
Exploit likelihood
30%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2022-44566
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2022-44566.html
Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2023:6818
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| rocky | 8 | fixed | |
| sles | affected | | |
| debian | bookworm | fixed | 2:6.1.7.3+dfsg-1 |
| debian | bullseye | fixed | 2:6.0.3.7+dfsg-2+deb11u3 |
| debian | forky | fixed | 2:6.1.7.3+dfsg-1 |
| debian | sid | fixed | 2:6.1.7.3+dfsg-1 |
| debian | trixie | fixed | 2:6.1.7.3+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| RubyGems | activerecord | <~> 5.2.8 | ~> 5.2.8 |
| RubyGems | activerecord | <6.1.7.1 | 6.1.7.1 |
| RubyGems | activerecord | >=7.0.0,<7.0.4.1 | 7.0.4.1 |
References
- https://github.com/rails/rails/releases/tag/v7.0.4.1
- https://errata.rockylinux.org/RLSA-2023:6818
- https://www.suse.com/security/cve/CVE-2022-44566.html
- https://nvd.nist.gov/vuln/detail/CVE-2022-44566
- https://github.com/rails/rails/commit/4f44aa9d514e701ada92b5cf08beccf566eeaebf
- https://github.com/rails/rails/commit/82bcdc011e2ff674e7dd8fd8cee3a831c908d29b
- https://code.jeremyevans.net/2022-11-01-forcing-sequential-scans-on-postgresql.html
- https://discuss.rubyonrails.org/t/cve-2022-44566-possible-denial-of-service-vulnerability-in-activerecords-postgresql-adapter/82119
- https://github.com/rails/rails
- https://github.com/rails/rails/releases/tag/v6.1.7.1
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2022-44566.yml
- https://mailchi.mp/railslts/rails-lts-multiple-dos-vulnerabilities-in-rails-rack-and-globalid
- https://makandracards.com/railslts/508019-rails-5-2-lts-changelog#section-jan-20th-2023-rails-version-5-2-8-15
- https://rubyonrails.org/2023/1/17/Rails-Versions-6-0-6-1-6-1-7-1-7-0-4-1-have-been-released
- https://security-tracker.debian.org/tracker/CVE-2022-44566
Verify integrity in audit chain (admin only). AS-IS.