Vulnerability · Published Feb 9, 2023 · Assigned by hackerone
CVE-2022-44566
High 7.5
In plain English
A high-severity uncontrolled resource consumption in https://github.com/rails/rails. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2022-44566 |
| Debian:13 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2022-44566 |
| Debian:14 | rails | 2:6.1.7.3+dfsg-1 | DEBIAN-CVE-2022-44566 |
| RubyGems | activerecord | 6.1.7.1 | GHSA-579w-22j4-4749 |
| RubyGems | activerecord | 7.0.4.1 | GHSA-579w-22j4-4749 |
| Ubuntu:24.04:LTS | rails | no fix listed | UBUNTU-CVE-2022-44566 |
| Ubuntu:25.10 | rails | no fix listed | UBUNTU-CVE-2022-44566 |
| Ubuntu:26.04:LTS | rails | no fix listed | UBUNTU-CVE-2022-44566 |
| Ubuntu:26.10 | rails | no fix listed | UBUNTU-CVE-2022-44566 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/rails/rails | 7.0.4.1, 6.1.7.1 |
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H