CVE-2022-44566: High severity Activerecord Project Activerecord Ruby vulnerability

Published Jan 18, 2023
·
Updated

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.

Other sources

In ActiveRecord <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.

— Red Hat

Affected Software

10 affected componentsFixes available
Activerecord Project Activerecord Ruby<6.1.7.1
Activerecord Project Activerecord Ruby>=7.0.0<7.0.4.1
rubygems/activerecord<6.1.7.1
6.1.7.1
rubygems/activerecord>=7.0.0<7.0.4.1
7.0.4.1
redhat/rubygem-activerecord<6.1.7.1
6.1.7.1
redhat/rubygem-activerecord<7.0.4.1
7.0.4.1
debian/rails<2:6.1.7.3+dfsg-1
2:6.1.7.3+dfsg-1
debian/rails<2:6.1.7.3+dfsg-1
2:6.1.7.3+dfsg-1
debian/rails<2:6.1.7.3+dfsg-1
2:6.1.7.3+dfsg-1
debian/rails
2:6.1.7.10+dfsg-1~deb12u22:6.1.7.10+dfsg-1~deb12u32:7.2.2.2+dfsg-2~deb13u12:7.2.2.2+dfsg-2~deb13u22:7.2.4+dfsg-12:7.2.4+dfsg-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rubygems/activerecord to a version that resolves this vulnerability.

    Fixed in 6.1.7.1
  2. Upgrade

    Upgrade rubygems/activerecord to a version that resolves this vulnerability.

    Fixed in 7.0.4.1
  3. Upgrade

    Upgrade redhat/rubygem-activerecord to a version that resolves this vulnerability.

    Fixed in 6.1.7.1
  4. Upgrade

    Upgrade redhat/rubygem-activerecord to a version that resolves this vulnerability.

    Fixed in 7.0.4.1
  5. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.10+dfsg-1~deb12u2Fixed in 2:6.1.7.10+dfsg-1~deb12u3Fixed in 2:7.2.2.2+dfsg-2~deb13u1Fixed in 2:7.2.2.2+dfsg-2~deb13u2Fixed in 2:7.2.4+dfsg-1Fixed in 2:7.2.4+dfsg-2
  6. Upgrade

    Upgrade debian/rails to a version that resolves this vulnerability.

    Fixed in 2:6.1.7.3+dfsg-1
  7. Upgrade

    Upgrade ActiveRecord PostgreSQL adapter to a version that resolves this vulnerability.

    Fixed in 5.2.8.15
  8. Upgrade

    Upgrade ActiveRecord PostgreSQL adapter to a version that resolves this vulnerability.

    Fixed in 6.1.7.1
  9. Upgrade

    Upgrade ActiveRecord PostgreSQL adapter to a version that resolves this vulnerability.

    Fixed in 7.0.4.1
  10. Compensating control

    Ensure user-supplied input provided to ActiveRecord clauses does not contain integers wider than a signed 64-bit representation or floats.

Event History

Jan 18, 2023
Advisory Published
via GitHub·06:21 PM
Jan 26, 2023
Data Sourced
via Red Hat·02:06 PM
DescriptionSeverityAffected Software
Feb 9, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2022-44566?

CVE-2022-44566 is classified as a denial of service vulnerability which can cause interruptions in service.

2

How do I fix CVE-2022-44566?

To mitigate CVE-2022-44566, upgrade ActiveRecord to version 6.1.7.1 or 7.0.4.1 or later.

3

What software versions are affected by CVE-2022-44566?

CVE-2022-44566 affects ActiveRecord versions prior to 6.1.7.1 and 7.0.4.1.

4

What kind of attack does CVE-2022-44566 facilitate?

CVE-2022-44566 can be exploited to launch a denial of service attack on services using the affected ActiveRecord versions.

5

Is there a known workaround for CVE-2022-44566?

There are no known workarounds for CVE-2022-44566; the only solution is to apply the appropriate upgrade.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203