CVE-2026-54619 — sqlite3-ruby
Fix: sparklemotion/sqlite3-ruby@2bd436dCVE-2026-54619 is a Use After Free vulnerability in sqlite3-ruby. A fix is available for sqlite3-ruby — see the affected versions and patch details below.
sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-54619.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
sqlite3-ruby💎sqlite3Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.
Description
Summary
Using Database#create_function or Database#define_function to define the same function name more than once with different numbers of arguments ("arity") or text encodings will result in a invalid memory read and a segmentation fault.
Mitigation
Upgrade to sqlite3 gem v2.9.5 or later.
As a workaround, avoid defining multiple custom functions with the same name (varying numbers of arguments or encoding).
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | sqlite3-ruby | all versions | 2.9.5bundle update sqlite3-ruby --conservative |
| 💎RubyGems | sqlite3 | all versions | 2.9.5bundle update sqlite3 --conservative |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for sqlite3-ruby, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update sqlite3-ruby to 2.9.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-54619 is resolved across your whole dependency graph.
Workarounds
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This flaw exhibits low, bounded impact across Confidentiality, Integrity, and Availability (C:L, I:L, A:L) because exploitation requires an attacker to inject custom Ruby code that redefines an existing SQLite function with a different arity. In typical deployments, application databases process standard SQL queries…
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.Source: Red Hat security advisory for CVE-2026-54619 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2026-54619 in your dependencies?
Find it across RubyGems, including transitive dependencies.