CVE-2026-54620 sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks
An attacker can trigger a use-after-free in SQLite aggregate function callbacks, potentially leading to code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-54620?
CVE-2026-54620 is a low-severity use after free vulnerability in sparklemotion sqlite3-ruby, published on 28 Jul 2026. It can only be exploited from the same machine or local network, with no action from the victim.
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.
Weakness: CWE-416
Which versions are affected by CVE-2026-54620?
4 open source packages ship an affected version, including sqlite3-ruby and sqlite3.
| Package | Affected | Fixed in |
|---|---|---|
sqlite3-ruby RubyGems | From 2.1.0 | 2.9.5 |
sqlite3-ruby RubyGems | From 2.1.0 | 2.9.5 |
sqlite3 RubyGems | From 2.1.0 | 2.9.5 |
sqlite3 RubyGems | From 2.1.0 | 2.9.5 |
How do I fix CVE-2026-54620?
Upgrade sqlite3-ruby to 2.9.5 or later.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2026-54620 being exploited?
There is no known exploitation of CVE-2026-54620 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-54620, GHSA-j7fr-3v8c-3qc3, UBUNTU-CVE-2026-54620.