{"id":"CVE-2026-54619","summary":"sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity","details":"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.","aliases":["GHSA-28hh-pr2h-2w89"],"modified":"2026-08-18T18:39:12.754539Z","published":"2026-07-28T16:21:20.943Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-416"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54619.json"},"references":[{"type":"WEB","url":"https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54619.json"},{"type":"ADVISORY","url":"https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-28hh-pr2h-2w89"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54619"},{"type":"FIX","url":"https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033"},{"type":"FIX","url":"https://github.com/sparklemotion/sqlite3-ruby/pull/710"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/sparklemotion/sqlite3-ruby","events":[{"introduced":"0"},{"fixed":"2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033"},{"fixed":"747e7de5166a0329a517402144408dfe45977962"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.9.5"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v2.9.4","v2.9.3","v2.9.2","v2.9.2.rc2","v2.9.2.rc1","v2.9.1","v2.9.0","v2.8.1","v2.8.0","v2.7.4","v2.7.3","v2.7.2","v2.7.1","v2.7.0","v2.6.0","v2.5.0","v2.5.0.rc1","v2.4.1","v2.4.0","v2.3.1","v2.3.0","v2.2.0","v2.1.1","v2.1.0","v2.1.0.rc3","v2.1.0.rc2","v2.1.0.rc1","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.7.0","v1.6.9","v1.6.8","v1.6.7","v1.6.6","v1.6.5","v1.6.5.rc1","v1.6.4","v1.6.3","v1.6.2","v1.6.1","v1.6.0","v1.6.0.rc2","v1.6.0.rc1","v1.5.4","v1.5.3","v1.5.2","v1.5.1","v1.5.0","v1.5.0.rc2","v1.5.0.rc1","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0","v1.3.12","v1.3.11","v1.3.6","v1.3.5","v1.3.4","v1.3.3","v1_3_2","v1_3_1","v1_3_0","v1_3_0_beta_2","v1_3_0_beta_1","v1_2_5","v1_2_4_1","v1_2_4","v1_2_3","v1_2_2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-54619.json","vanir_signatures_modified":"2026-08-18T18:39:12Z","vanir_signatures":[{"id":"CVE-2026-54619-8f78c091","signature_type":"Function","signature_version":"v1","source":"https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033","target":{"file":"ext/sqlite3/database.c","function":"define_function_with_flags"},"deprecated":false,"digest":{"length":455,"function_hash":"320502227548289844685919605394161335417"}},{"digest":{"line_hashes":["5507359179173828294210829281448637030","121005372655422925823746995976943339653","17865087580315502383485314049429276864","157692062085054141703051043966096733447"],"threshold":0.9},"id":"CVE-2026-54619-f38e90ff","signature_type":"Line","signature_version":"v1","source":"https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033","target":{"file":"ext/sqlite3/database.c"},"deprecated":false}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}