Vulnerability · Published Jul 28, 2026 · Assigned by GitHub_M

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

Low 2.0

In plain English

A low-severity use-after-free in sqlite3-ruby from sparklemotion. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.0Low
Exploit odds (30 days)0.1%top 96.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-sqlite3no fix listedDEBIAN-CVE-2026-54620
Debian:13ruby-sqlite3no fix listedDEBIAN-CVE-2026-54620
Debian:14ruby-sqlite32.9.5-1DEBIAN-CVE-2026-54620
RubyGemssqlite32.9.5GHSA-j7fr-3v8c-3qc3
RubyGemssqlite3-ruby2.9.5GHSA-j7fr-3v8c-3qc3
Ubuntu:22.04:LTSruby-sqlite3no fix listedUBUNTU-CVE-2026-54620
Ubuntu:24.04:LTSruby-sqlite3no fix listedUBUNTU-CVE-2026-54620
Ubuntu:26.04:LTSruby-sqlite3no fix listedUBUNTU-CVE-2026-54620
Ubuntu:26.10ruby-sqlite3no fix listedUBUNTU-CVE-2026-54620

Affected products (as reported)

VendorProductVersions
sparklemotion sqlite3-ruby >= 2.1.0, < 2.9.5

Weakness: CWE-416 · Vector: 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

References