CVE-2026-54620 sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks
LowCVSS 2.0
EPSS 0.14%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
10 packages: 3 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/ruby-sqlite3(Debian 12) | = 1.4.2-4; = 1.6.9-1; = 1.6.9-2; = 1.7.3-1 +10 more | No fix listed | No fix yet |
| debian/ruby-sqlite3(Debian 13) | = 1.7.3-1; = 1.7.3-2; = 2.9.0-1; = 2.9.1-1 +7 more | No fix listed | No fix yet |
| ubuntu/ruby-sqlite3(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-sqlite3(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-sqlite3(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/ruby-sqlite3(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/ruby-sqlite3(Debian 14) | < 2.9.5-1; = 1.7.3-1; = 1.7.3-2; = 2.9.0-1 +2 more | 2.9.5-1 | Fixed |
| rubygems sqlite3(RubyGems) | = 2.1.0; = 2.1.1; = 2.2.0; = 2.3.0 +21 more | 2.9.5 | Fixed |
| rubygems sqlite3-ruby(RubyGems) | >= 2.1.0, < 2.9.5; >= 2.1.0, <= 2.9.4 | 2.9.5 | Fixed |
| sparklemotion sqlite3-ruby | = >= 2.1.0, < 2.9.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sparklemotion sqlite3-ruby | = >= 2.1.0, < 2.9.5 | No fix listed |
| rubygems sqlite3-ruby(RubyGems) | >= 2.1.0, < 2.9.5 | 2.9.5 |
| rubygems sqlite3(RubyGems) | >= 2.1.0, < 2.9.5 | 2.9.5 |
| rubygems sqlite3(RubyGems) | = 2.1.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.1.1 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.2.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.3.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.3.1 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.4.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.4.1 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.5.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.5.0.rc1 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.6.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.7.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.7.1 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.7.2 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.7.3 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.7.4 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.8.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.8.1 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.9.0 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.9.1 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.9.2 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.9.2.rc2 | No fix listed |
| rubygems sqlite3(RubyGems) | = 2.9.3 | No fix listed |
Show 38 more
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems sqlite3(RubyGems) | = 2.9.4 | No fix listed |
| rubygems sqlite3-ruby(RubyGems) | >= 2.1.0, <= 2.9.4 | No fix listed |
| rubygems sqlite3(RubyGems) | >= 2.1.0, <= 2.9.4 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | All versions | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 1.4.2-4 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 1.6.9-1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 1.6.9-2 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 1.7.3-1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 1.7.3-2 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.10.0-1~exp1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.9.0-1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.9.1-1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.9.3-1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.9.5-1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.9.5-2 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.9.6-1 | No fix listed |
| debian/ruby-sqlite3(Debian:12) | = 2.9.6-2 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | All versions | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 1.7.3-1 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 1.7.3-2 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.10.0-1~exp1 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.9.0-1 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.9.1-1 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.9.3-1 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.9.5-1 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.9.5-2 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.9.6-1 | No fix listed |
| debian/ruby-sqlite3(Debian:13) | = 2.9.6-2 | No fix listed |
| debian/ruby-sqlite3(Debian:14) | < 2.9.5-1 | 2.9.5-1 |
| debian/ruby-sqlite3(Debian:14) | = 1.7.3-1 | No fix listed |
| debian/ruby-sqlite3(Debian:14) | = 1.7.3-2 | No fix listed |
| debian/ruby-sqlite3(Debian:14) | = 2.9.0-1 | No fix listed |
| debian/ruby-sqlite3(Debian:14) | = 2.9.1-1 | No fix listed |
| debian/ruby-sqlite3(Debian:14) | = 2.9.3-1 | No fix listed |
| ubuntu/ruby-sqlite3(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/ruby-sqlite3(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/ruby-sqlite3(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/ruby-sqlite3(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3 vendor-advisory
- https://github.com/sparklemotion/sqlite3-ruby/pull/711 patch
- https://github.com/sparklemotion/sqlite3-ruby/commit/b24e1e6076528b7f95f99acf7a81c70d0004c726 patch
- https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5
- github.com exploit
- github.com product
- www.cve.org
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2508116 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-54620 vendor-advisory
- Ubuntu CVE tracker vendor-advisory