{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "2.1.0"
              },
              {
                "fixed": "2.9.5"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "9a18cb9697d5bf6bdfd19e20e49934b0ce83a12a"
            },
            {
              "fixed": "b24e1e6076528b7f95f99acf7a81c70d0004c726"
            },
            {
              "fixed": "747e7de5166a0329a517402144408dfe45977962"
            }
          ],
          "repo": "https://github.com/sparklemotion/sqlite3-ruby",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-j7fr-3v8c-3qc3"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54620.json"
  },
  "details": "sqlite3 provides Ruby bindings for the SQLite3 embedded database. From 2.1.0 to 2.9.4, the callbacks used for SQLite aggregate functions can be freed while still referenced during aggregation, resulting in a use-after-free. This issue is fixed in version 2.9.5.",
  "id": "CVE-2026-54620",
  "modified": "2026-07-30T03:52:27.171566246Z",
  "published": "2026-07-28T16:23:38.389Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54620.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-54620"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sparklemotion/sqlite3-ruby/commit/b24e1e6076528b7f95f99acf7a81c70d0004c726"
    },
    {
      "type": "FIX",
      "url": "https://github.com/sparklemotion/sqlite3-ruby/pull/711"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks"
}