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

Low 2.0 Published Updated

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.

PackageAffectedFixed in
sqlite3-ruby RubyGemsFrom 2.1.02.9.5
sqlite3-ruby RubyGemsFrom 2.1.02.9.5
sqlite3 RubyGemsFrom 2.1.02.9.5
sqlite3 RubyGemsFrom 2.1.02.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.

Is CVE-2026-54620 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free