{"id":"CVE-2026-54619","aliases":["GHSA-28hh-pr2h-2w89"],"url":"https://o3.security/vulnerability/CVE-2026-54619","summary":"sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity","details":"## 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.","published":"2026-07-28T16:21:20.943Z","modified":"2026-10-28T11:14:44.273198780Z","cvss":null,"epss":{"score":0.00107,"percentile":0.01272,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"RubyGems","name":"sqlite3-ruby","fixedVersion":"2.9.5"},{"ecosystem":"RubyGems","name":"sqlite3","fixedVersion":"2.9.5"}],"fix":{"url":"https://github.com/sparklemotion/sqlite3-ruby/commit/2bd436d17f77cdd4c31b00fe9d50b0d21cbaf033","label":"sparklemotion/sqlite3-ruby@2bd436d"},"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"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sqlite3/CVE-2026-54619.yml"},{"type":"PACKAGE","url":"https://github.com/sparklemotion/sqlite3-ruby"},{"type":"WEB","url":"https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-54619"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T11:14:44.273198780Z"}}