sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity
sparklemotion sqlite3-ruby
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| sqlite3-ruby RubyGems |
|
|
| sqlite3 RubyGems |
|
|
Original description
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.