Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-44566

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-44566
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 03:08 UTC · Revision 1

Source evidence

CVE-2022-44566

core-osv · Original source

Published 9 Feb 2023, 00:00 UTC

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.

osv:CVE-2022-44566
Complete source record
{
  "id": "7aabf7ab36b37ec58018c4f62a91683a7582916cf5187b46ba42e875bfbc91ba",
  "url": "https://osv.dev/vulnerability/CVE-2022-44566",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-44566",
    "summary": "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.",
    "evidence": "osv:CVE-2022-44566",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-44566",
      "aliases": [
        "CVE-2022-44566",
        "GHSA-579w-22j4-4749"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rails/rails",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "c443466a99f8ed951605fb4993a01de5e41349a4"
                },
                {
                  "introduced": "984c3ef2775781d47efa9f541ce570daa2434a80"
                },
                {
                  "fixed": "23e0345fe900dfd7edd6e8e5a7a6bd54b2a7d2ed"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.1.7.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:activerecord_project:activerecord:*:*:*:*:*:ruby:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.0.4.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.1.7",
            "v7.0.4",
            "v7.0.3",
            "v6.1.5",
            "v7.0.2",
            "v7.0.1",
            "v7.0.0",
            "v6.1.4",
            "v6.1.3",
            "v6.1.2",
            "v6.1.1",
            "v6.1.0",
            "v6.1.0.rc2",
            "v6.1.0.rc1",
            "v6.0.0.beta2",
            "v6.0.0.beta1",
            "v5.1.0.beta1",
            "v5.0.0.beta4",
            "v5.0.0.beta2",
            "v5.0.0.beta1",
            "v4.2.0.beta1",
            "v4.0.0.rc1",
            "v4.0.0.beta1",
            "v3.2.0.rc1",
            "v3.1.0.rc1",
            "v3.1.0.beta1",
            "v3.0.0.beta3",
            "v3.0.0.beta.3",
            "v2.0.1",
            "v2.0.0",
            "v2.0.0_RC2",
            "v2.0.0_RC1",
            "v2.0.0_PR",
            "v1.1.1",
            "v1.1.0",
            "v1.1.0_RC1",
            "v0.14.3",
            "v0.14.1",
            "v0.13.1",
            "v0.13.0",
            "v0.12.0",
            "v0.11.1",
            "v0.11.0",
            "v0.10.1",
            "v0.10.0",
            "v0.9.5",
            "v0.9.4.1",
            "v0.9.4",
            "v0.9.3",
            "v0.9.2",
            "v0.9.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-44566.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:49.189312578Z",
      "provider": "osv",
      "references": [
        "https://code.jeremyevans.net/2022-11-01-forcing-sequential-scans-on-postgresql.html",
        "https://discuss.rubyonrails.org/t/cve-2022-44566-possible-denial-of-service-vulnerability-in-activerecords-postgresql-adapter/82119",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/44xxx/CVE-2022-44566.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-44566"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-400"
        ],
        "cna_assigner": "hackerone",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0.4.1, 6.1.7.1"
                  },
                  {
                    "last_affected": "7.0.4.1, 6.1.7.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/44xxx/CVE-2022-44566.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-44566",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 517627,
  "published_at": "2023-02-09T00:00:00+00:00"
}