{"id":"CVE-2026-54619","aliases":["CVE-2026-54619","GHSA-28hh-pr2h-2w89"],"related":[],"kind":"vulnerability","state":"published","title":"sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nUsing `Database#create_function` or `Database#define_function` to define the same function name more than once with different numbers of arguments (\"arity\") or text encodings will result in a invalid memory read and a segmentation fault.\n\n## Mitigation\n\nUpgrade to sqlite3 gem v2.9.5 or later.\n\nAs a workaround, avoid defining multiple custom functions with the same name (varying numbers of arguments or encoding).\n\n## Severity\n\nThe sqlite3-ruby maintainers assess this as Low severity. It is reliably triggered after GC when code is structured in a particular way. There is no known general exploit that could be used as a denial of service attack.","format":"markdown","source":"ghsa"},{"lang":"es","text":"sqlite3 proporciona enlaces Ruby para la base de datos incrustada SQLite3. En la versión 2.9.4 y anteriores, redefinir una función SQLite con una aridad diferente libera el gestor de función previamente registrado mientras SQLite aún puede referenciarlo, lo que resulta en un uso después de liberación. Este problema está solucionado en la versión 2.9.5.","source":"nvd"}],"published":"2026-07-28T16:21:20.943Z","modified":"2026-10-23T23:10:00.157Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"< 2.9.5","status":"affected"}],"vendor":"sparklemotion","product":"sqlite3-ruby","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.5"}],"ecosystem":"RubyGems","package":"sqlite3-ruby","purl":"pkg:gem/sqlite3-ruby","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.5"}],"ecosystem":"RubyGems","package":"sqlite3","purl":"pkg:gem/sqlite3","source":"ghsa"}],"references":[{"url":"https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-28hh-pr2h-2w89","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sparklemotion/sqlite3-ruby/pull/710","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/CVE-2026-54619.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/sparklemotion/sqlite3-ruby","tags":["package"],"sources":["ghsa"]},{"url":"https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54619","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-07-28T19:33:22.461Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54619","url":"https://www.cve.org/CVERecord?id=CVE-2026-54619","licence":"CVE Terms of Use","modified":"2026-07-28T19:33:33.444Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-28hh-pr2h-2w89","url":"https://github.com/advisories/GHSA-28hh-pr2h-2w89","licence":"CC-BY-4.0","modified":"2026-07-28T16:35:58.822Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54619","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54619","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.355Z","epss":{"score":0.00107,"percentile":0.01222,"date":"2026-12-01T12:00:22.000Z"}}