GHSA-MWM8-39RW-8826
Use-After-Free in SQLite Aggregate Arguments in Heap-Allocated Argument Array
Overview
Description
Summary
Using Database#create_aggregate, #create_aggregate_handler, or Database#define_aggregator to define an aggregate function that takes two or more arguments, and then evaluating it over TEXT or BLOB column values, can free the Ruby objects holding those arguments while a later argument is still being converted, during ordinary garbage collection. The aggregate's step method then receives an incorrect object, or the process crashes with a segmentation fault.
Credits
Reported by Jeremy Daer (@jeremy).
Source: OX vulnerability database
Severity
MEDIUM
No CVSS vector in the source. Severity comes from the advisory.
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| RubyGems | sqlite3 | >=1.4.0, <2.9.6 | 2.9.6 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- advisories.gitlab.com https://advisories.gitlab.com/gem/sqlite3/GHSA-mwm8-39rw-8826
- github.com https://github.com/advisories/GHSA-mwm8-39rw-8826
- github.com https://github.com/sparklemotion/sqlite3-ruby
- github.com https://github.com/sparklemotion/sqlite3-ruby/blob/main/CHANGELOG.md#296--2026-08-11
- github.com https://github.com/sparklemotion/sqlite3-ruby/commit/cc5ac0cdf05af8148f4363410da0ba32508d9c97
- github.com https://github.com/sparklemotion/sqlite3-ruby/pull/733
- github.com https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.6
- github.com https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-mwm8-39rw-8826
- osv.dev https://osv.dev/vulnerability/GHSA-mwm8-39rw-8826
- rubygems.org https://rubygems.org/gems/sqlite3/versions/2.9.6
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.