Denial of Service Vulnerability in ActiveRecord's PostgreSQL Adapter: Integer vs Numeric Comparison

Denial of Service Vulnerability in ActiveRecord's PostgreSQL Adapter: Integer vs Numeric Comparison

CVE-2022-44566 · HIGH Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

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.

Learn more about our Cis Benchmark Audit For Microsoft Sql Server.