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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-sqlite3 | no fix listed | DEBIAN-CVE-2026-54620 |
| Debian:13 | ruby-sqlite3 | no fix listed | DEBIAN-CVE-2026-54620 |
| Debian:14 | ruby-sqlite3 | 2.9.5-1 | DEBIAN-CVE-2026-54620 |
| RubyGems | sqlite3 | 2.9.5 | GHSA-j7fr-3v8c-3qc3 |
| RubyGems | sqlite3-ruby | 2.9.5 | GHSA-j7fr-3v8c-3qc3 |
| Ubuntu:22.04:LTS | ruby-sqlite3 | no fix listed | UBUNTU-CVE-2026-54620 |
| Ubuntu:24.04:LTS | ruby-sqlite3 | no fix listed | UBUNTU-CVE-2026-54620 |
| Ubuntu:26.04:LTS | ruby-sqlite3 | no fix listed | UBUNTU-CVE-2026-54620 |
| Ubuntu:26.10 | ruby-sqlite3 | no fix listed | UBUNTU-CVE-2026-54620 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3 x_refsource_CONFIRM
- https://github.com/sparklemotion/sqlite3-ruby/pull/711 x_refsource_MISC
- https://github.com/sparklemotion/sqlite3-ruby/commit/b24e1e6076528b7f95f99acf7a81c70d0004c726 x_refsource_MISC
- https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5 x_refsource_MISC