Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. sqlite3
  4. ›
  5. CVE-2026-54620

CVE-2026-54620: sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks

July 28, 2026

Using Database#create_aggregate, #create_aggregate_handler, or Database#define_aggregator to define an aggregate function, and then using an open statement calling that function after the database has been explicitly closed will result in an invalid memory read and a segmentation fault.

References

  • github.com/advisories/GHSA-j7fr-3v8c-3qc3
  • github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/CVE-2026-54620.yml
  • github.com/sparklemotion/sqlite3-ruby/commit/b24e1e6076528b7f95f99acf7a81c70d0004c726
  • github.com/sparklemotion/sqlite3-ruby/pull/711
  • github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5
  • github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3
  • nvd.nist.gov/vuln/detail/CVE-2026-54620
  • www.cve.org/CVERecord/SearchResults?query=CVE-2026-54620

Code Behaviors & Features

Detect and mitigate CVE-2026-54620 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 2.9.5

Fixed versions

  • 2.9.5

Solution

Upgrade to version 2.9.5 or above.

Impact 4.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-416: Use After Free

Source file

gem/sqlite3/CVE-2026-54620.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 29 Jul 2026 00:21:10 +0000.