sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks
Priority LOW 10CWE-416Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00142 3rd percentileScored 2026-11-07
Fix Fixed sqlite3-ruby (sparklemotion): 2.9.5sqlite3-ruby (RubyGems): 2.9.5+1 more product
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| sparklemotion | sqlite3-ruby | 2.1.0 to before 2.9.5 | 2.9.5 | Patch available | CNA |
| — | sqlite3-ruby (RubyGems) | 2.1.0 to before 2.9.5 | 2.9.5 | Patch available | GHSA-j7fr-3v8c-3qc3 |
| — | sqlite3 (RubyGems) | 2.1.0 to before 2.9.5 | 2.9.5 | Patch available | GHSA-j7fr-3v8c-3qc3 |
- sqlite3-ruby Vendorsparklemotion Affected 2.1.0 to before 2.9.5 Fixed in 2.9.5 Patch available CNA
- sqlite3-ruby (RubyGems) Vendor— Affected 2.1.0 to before 2.9.5 Fixed in 2.9.5 Patch available GHSA-j7fr-3v8c-3qc3
- sqlite3 (RubyGems) Vendor— Affected 2.1.0 to before 2.9.5 Fixed in 2.9.5 Patch available GHSA-j7fr-3v8c-3qc3
Remediation
- Fix · CNA sqlite3-ruby (sparklemotion) Fixed in 2.9.5
- Fix · GHSA-j7fr-3v8c-3qc3 sqlite3-ruby (RubyGems) Fixed in 2.9.5 Advisory →
- Fix · GHSA-j7fr-3v8c-3qc3 sqlite3 (RubyGems) Fixed in 2.9.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54620
- 2026-10-03 Alias added: GHSA-j7fr-3v8c-3qc3
References
Other 7
- https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3
- https://github.com/sparklemotion/sqlite3-ruby/pull/711
- https://github.com/sparklemotion/sqlite3-ruby/commit/b24e1e6076528b7f95f99acf7a81c70d0004c726
- https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/CVE-2026-54620.yml
- https://github.com/sparklemotion/sqlite3-ruby
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54620
More sparklemotion vulnerabilities
- TI-2022-11724 Improper Handling of Unexpected Data Type in Nokogiri CVSS 3.1HIGH 8.2
- TI-2018-15259 zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if… CVSS 3.1HIGH 7.5
- TI-2026-69678 Mechanize leaks credential headers to other hosts after redirects CVSS 3.1MEDIUM 6.8
- TI-2025-05895 sparklemotion nokogiri hashmap.c hashmap_get_with_hash heap-based overflow CVSS 4.0MEDIUM 4.8
- TI-2025-05891 sparklemotion nokogiri hashmap.c hashmap_set_with_hash heap-based overflow CVSS 4.0MEDIUM 4.8
- TI-2019-03885 OS command injection in Nokogiri CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-54620 · CVE Program
- CVE-2026-54620 · NVD
- FIRST EPSS
- GHSA-j7fr-3v8c-3qc3 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-54620 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences