# CVE-2026-54620: sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-07-28T16:23:38.389Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-j7fr-3v8c-3qc3
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sparklemotion sqlite3-ruby: >= 2.1.0, < 2.9.5
- sqlite3-ruby (RubyGems): from 2.1.0 before 2.9.5
- sqlite3 (RubyGems): from 2.1.0 before 2.9.5

## Every score

- GitHub_M: CVSS:4.0 2.0 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3> (web)
- <https://github.com/sparklemotion/sqlite3-ruby/pull/711> (web)
- <https://github.com/sparklemotion/sqlite3-ruby/commit/b24e1e6076528b7f95f99acf7a81c70d0004c726> (web)
- <https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5> (web)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/CVE-2026-54620.yml> (web)
- <https://github.com/sparklemotion/sqlite3-ruby> (package)
- <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54620> (web)

## Sources

- CVE List: [CVE-2026-54620](https://www.cve.org/CVERecord?id=CVE-2026-54620), CVE Terms of Use, modified 2026-07-28
- GitHub Advisory Database: [GHSA-j7fr-3v8c-3qc3](https://github.com/advisories/GHSA-j7fr-3v8c-3qc3), CC-BY-4.0, modified 2026-07-28
- NVD: [CVE-2026-54620](https://nvd.nist.gov/vuln/detail/CVE-2026-54620), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-54620 · Whole record: https://cve.day/CVE-2026-54620.json · Rebuilt by cve.day 2026-11-25T22:59:30.356Z
