sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity
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
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
sqlite3 provides Ruby bindings for the SQLite3 embedded database. In version 2.9.4 and earlier, redefining a SQLite function with a different arity frees the previously registered function handler while SQLite may still reference it, resulting in a use-after-free. This issue is fixed in version 2.9.5.
Why it matters now
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 | before 2.9.5 | 2.9.5 | Patch available | CNA |
| — | sqlite3-ruby (RubyGems) | before 2.9.5 | 2.9.5 | Patch available | GHSA-28hh-pr2h-2w89 |
| — | sqlite3 (RubyGems) | before 2.9.5 | 2.9.5 | Patch available | GHSA-28hh-pr2h-2w89 |
- sqlite3-ruby Vendorsparklemotion Affected before 2.9.5 Fixed in 2.9.5 Patch available CNA
- sqlite3-ruby (RubyGems) Vendor— Affected before 2.9.5 Fixed in 2.9.5 Patch available GHSA-28hh-pr2h-2w89
- sqlite3 (RubyGems) Vendor— Affected before 2.9.5 Fixed in 2.9.5 Patch available GHSA-28hh-pr2h-2w89
Remediation
- Fix · CNA sqlite3-ruby (sparklemotion) Fixed in 2.9.5
- Fix · GHSA-28hh-pr2h-2w89 sqlite3-ruby (RubyGems) Fixed in 2.9.5 Advisory →
- Fix · GHSA-28hh-pr2h-2w89 sqlite3 (RubyGems) Fixed in 2.9.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Satellite 6 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54619
- 2026-10-03 Alias added: GHSA-28hh-pr2h-2w89
References
Other 7
- https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-28hh-pr2h-2w89
- https://github.com/sparklemotion/sqlite3-ruby/pull/710
- https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033
- https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/CVE-2026-54619.yml
- https://github.com/sparklemotion/sqlite3-ruby
- https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54619
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-54619 · CVE Program
- CVE-2026-54619 · NVD
- FIRST EPSS
- GHSA-28hh-pr2h-2w89 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-54619 · 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