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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.3%top 30.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2022-44566
Debian:13rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2022-44566
Debian:14rails2:6.1.7.3+dfsg-1DEBIAN-CVE-2022-44566
RubyGemsactiverecord6.1.7.1GHSA-579w-22j4-4749
RubyGemsactiverecord7.0.4.1GHSA-579w-22j4-4749
Ubuntu:24.04:LTSrailsno fix listedUBUNTU-CVE-2022-44566
Ubuntu:25.10railsno fix listedUBUNTU-CVE-2022-44566
Ubuntu:26.04:LTSrailsno fix listedUBUNTU-CVE-2022-44566
Ubuntu:26.10railsno fix listedUBUNTU-CVE-2022-44566

Affected products (as reported)

VendorProductVersions
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

References