Description
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.
Published: 2026-07-28
Score: 2 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a use‑after‑free in the Ruby bindings for SQLite that occurs when callbacks registered for aggregate functions are freed while still in use during aggregation. The flaw can corrupt memory or cause a crash; the CVE description does not explicitly state that it can lead to code execution, so that possibility is not asserted in this report.

Affected Systems

The sparklemotion sqlite3‑ruby gem from version 2.1.0 through 2.9.4 is vulnerable. Any Ruby application that loads this gem and registers custom aggregate functions may be affected. Versions 2.9.5 and later contain the fix.

Risk and Exploitability

The CVSS score of 2 indicates low severity and the EPSS <1 % signals a very low likelihood of exploitation. The flaw is not listed in the CISA KEV catalog. The vulnerability requires local execution of Ruby code that registers aggregate functions, making the attack vector local or delegated rather than remote. Given the low impact and limited attack surface, monitoring is advisable while applying the available fix.

Generated by OpenCVE AI on August 3, 2026 at 14:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade sqlite3-ruby to version 2.9.5 or later
  • If an upgrade cannot be performed immediately, avoid using custom aggregate functions in the application to eliminate the risk of the freed callback pointer
  • Monitor application logs and memory usage for crashes or segmentation faults that could indicate exploitation

Generated by OpenCVE AI on August 3, 2026 at 14:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-j7fr-3v8c-3qc3 sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks
History

Fri, 31 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L'}

threat_severity

Moderate


Tue, 28 Jul 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Sparklemotion
Sparklemotion sqlite3-ruby
Vendors & Products Sparklemotion
Sparklemotion sqlite3-ruby

Tue, 28 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 28 Jul 2026 17:00:00 +0000

Type Values Removed Values Added
Description 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.
Title sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks
Weaknesses CWE-416
References
Metrics cvssV4_0

{'score': 2, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

Sparklemotion Sqlite3-ruby
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-28T17:27:04.382Z

Reserved: 2026-06-15T20:07:02.184Z

Link: CVE-2026-54620

cve-icon Vulnrichment

Updated: 2026-07-28T17:26:59.907Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-28T17:16:52.790

Modified: 2026-07-30T19:31:43.780

Link: CVE-2026-54620

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-28T16:23:38Z

Links: CVE-2026-54620 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:00:15Z

Weaknesses