CVE-2022-44566
Ruby vulnerability analysis and mitigation

Overview

A denial of service vulnerability was discovered in ActiveRecord's PostgreSQL adapter versions <7.0.4.1 and <6.1.7.1, identified as CVE-2022-44566. When a value outside the range for a 64-bit signed integer is provided to the PostgreSQL connection adapter, it treats the target column type as numeric, which can lead to performance issues (Rails Discussion, Jeremy Evans Blog).

Technical details

The vulnerability occurs when comparing integer values against numeric values in PostgreSQL queries. When an integer value outside the bigint range is used, PostgreSQL implicitly casts it to numeric type. This casting prevents the use of indexes on the column, forcing a sequential scan that can be significantly slower - up to 1000 times worse performance compared to indexed queries (Jeremy Evans Blog).

Impact

The vulnerability can result in a denial of service condition due to the forced sequential scans on database queries. For large tables, this can cause significant performance degradation, potentially making the database operations extremely slow and resource-intensive (Jeremy Evans Blog).

Mitigation and workarounds

Several mitigation strategies are available: using bound variables, validating integer values before queries to ensure they're within the bigint range, explicitly casting to the appropriate type, or using the fixed versions (Rails 7.0.4.1 and 6.1.7.1). For users unable to upgrade immediately, patches are available for the supported release series (Rails Discussion, Jeremy Evans Blog).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
GHSA-5qw5-wf2q-f538HIGH8.8
  • RubyRuby
  • activerecord-jdbc-adapter
NoYesJan 16, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
CVE-2026-23885MEDIUM6.6
  • RubyRuby
  • alchemy_cms
NoYesJan 19, 2026
GHSA-mpwp-4h2m-765cMEDIUM6.6
  • RubyRuby
  • activejob
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management