CVE-2026-54619 — Vulnerability in sqlite3-ruby — CVE Details
sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.14%). Schedule for your next planned update.
Does your project use an affected sqlite3-ruby version?
Paste your Gemfile.lock to check it for CVE-2026-54619 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published July 28, 2026 (121 days ago).
- Last revised July 28, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install sqlite3-ruby -v 2.9.5
gem install sqlite3 -v 2.9.5
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: RubyGems (2).
| Package | Fixed In |
|---|---|
| sqlite3-ruby RubyGems · Affected: 0.5.0, 0.6.0, 0.9.0, 1.0.0 (+15 more) | 2.9.5 |
| sqlite3 RubyGems · Affected: 0.0.0, 0.0.1, 0.0.2, 0.0.3 (+79 more) | 2.9.5 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-416Use After FreeMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 4.5 score means for each attack dimension.
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
References
- https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-28hh-pr2h-2w89WEB
- https://github.com/sparklemotion/sqlite3-ruby/pull/710WEB
- https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033WEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/CVE-2026-54619.ymlWEB
- https://github.com/sparklemotion/sqlite3-rubyPACKAGE
- https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5WEB
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54619WEB
Frequently Asked Questions
- What is CVE-2026-54619?
- sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity. This vulnerability has been assigned a severity rating of LOW (CVSS score: 4.5/10).
- How do I check if my project is affected by CVE-2026-54619?
- CVE-2026-54619 affects sqlite3-ruby and sqlite3. It has a 0.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-54619 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 1.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- GHSA-mwm8-39rw-8826MEDIUM
sqlite3-ruby: Use-After-Free in SQLite Aggregate Arguments in Heap-Allocated Argument Array
- CVE-2026-126063LOW
Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer
- CVE-2026-73492LOW
Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons
- CVE-2026-54620LOW
sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks