What’s Vulnerable › Vulnerabilities

CVE-2022-44566: Denial of Service Vulnerability in ActiveRecord's PostgreSQL adapter

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 products

How to fix

Upgrade to a fixed version: Activerecord Project Activerecord 6.1.7.1, 7.0.4.1; Rubygems Activerecord 6.1.7.1, 7.0.4.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-44566 or the next vulnerability affects your stack