llamaCVEVulnerability Intelligence
/
Advisory · GitHub · RubyGems · sqlite3

GHSA-MWM8-39RW-8826

sqlite3-ruby: Use-After-Free in SQLite Aggregate Arguments in Heap-Allocated Argument Array

Parche disponible
Descargar PNG JSON
CVSS
—
medium
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -52 d de la divulgación
Exposición48 dDesde la divulgación, 2 oct 2026, 6:11 p. m.
Detección45 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
Parche 2.9.6
Monitoreo
Detectada
11 ago 26
2 oct 26
17 nov 26
19 nov 26
11 ago 26
5 sept 26
30 sept 26
25 oct 26
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 2.9.6 sqlite3 · -52 d desde divulgación
Divulgación Publicada GHSA-MWM8-39RW-8826 divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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.

Mitigation

Upgrade to sqlite3 gem v2.9.6 or later.

There is no reliable workaround. If you cannot upgrade, avoid defining aggregate functions that take two or more arguments. Restricting column value sizes is not a mitigation: smaller values make the defect fire less often but do not prevent it.

Severity

The sqlite3-ruby maintainers assess this as Medium severity (CVSS 4.0 score 6.3). It is reached through ordinary garbage collection without any unusual code structuring: an application is exposed whenever it evaluates a multi-argument aggregate over TEXT or BLOB values whose size an attacker can influence. The demonstrated impact is an incorrect value passed to the aggregate's `step` method, or a process crash; no controlled memory write or general denial-of-service exploit has been demonstrated.

Credits

Reported by Jeremy Daer (@jeremy https://github.com/jeremy).

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Versiones

Rangos afectados

Afectada Corregida Última
sqlite3≥ 1.4.0 < 2.9.6
1.4.0
2.9.6
2.10.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
rubygemssqlite3
Corregida 2.9.6 -52 d 2.10.2 no afectada
Versiones corregidas2.9.6
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Otrahttps://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-mwm8-39rw-8826
Otrahttps://github.com/sparklemotion/sqlite3-ruby/pull/733
Otrahttps://github.com/sparklemotion/sqlite3-ruby/commit/cc5ac0cdf05af8148f4363410da0ba32508d9c97
Otrahttps://github.com/sparklemotion/sqlite3-ruby
Otrahttps://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.6

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.