🛡️ CVE-2026-54620 — sqlite3
Description
sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks
Summary
Using Database#create_aggregate, #create_aggregate_handler, or Database#define_aggregator to define an aggregate function, and then using an open statement calling that function after the database has been explicitly closed will result in an invalid memory read and a segmentation fault.
Mitigation
Upgrade to sqlite3 gem v2.9.5 or later.
As a workaround, avoid using an aggregate function after closing the database.
Severity
The sqlite3-ruby maintainers assess this as Low severity. It is reliably triggered after GC when code is structured in a particular way. There is no known general exploit that could be used as a denial of service attack.
How this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is high, an attacker needs low-level privileges on the target. No user interaction is required. Rated impact: confidentiality low, integrity low, availability low.
Weakness class
CVE-2026-54620 is classified as CWE-416: Use After Free. Memory is used after being released, so its contents may already belong to something else.
Affected software
CVE-2026-54620 is recorded against 3 packages.
- sqlite3 (from 2.1.0 up to 2.9.5)
- sqlite3-ruby (from 2.1.0 up to 2.9.5)
- unknown
Timeline and source
Published on 28 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)
www.cve.org (Web)
Details
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
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| sqlite3 | 2.1.0 | 2.9.5 |
| sqlite3-ruby | 2.1.0 | 2.9.5 |
| unknown | — | — |
References
Similar Threats
- Low CVE-2026-54619
- Unknown CLSA-2025-1760649409
- Unknown CLSA-2025-1755885175
- Unknown CLSA-2025-1755113204
- Unknown CLSA-2025-1754410992
More CVE 2026 advisories
Browse all of CVE 2026 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2026-54620?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2026-54620 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.