Read the docs
TI-2026-39451 Aliases CVE-2026-54620GHSA-j7fr-3v8c-3qc3

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

VendorProductAffected versionsFixed inStatusSource
sparklemotionsqlite3-ruby2.1.0 to before 2.9.52.9.5Patch availableCNA
—sqlite3-ruby (RubyGems)2.1.0 to before 2.9.52.9.5Patch availableGHSA-j7fr-3v8c-3qc3
—sqlite3 (RubyGems)2.1.0 to before 2.9.52.9.5Patch availableGHSA-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

  1. 2026-10-02 Threatist record created from CVE-2026-54620
  2. 2026-10-03 Alias added: GHSA-j7fr-3v8c-3qc3

References

  • 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
See all 31 →

Sources