sqlite3 is vulnerable to Use After Free
37
Low Risk
The sqlite3 Ruby gem registers user-defined SQLite functions through C extension callbacks that hold pointers to Ruby blocks. Redefining the same function name with a different arity replaces the stored block while SQLite may still reference the prior callback, and garbage collection can then trigger an invalid memory read and segmentation fault. Affected applications using create_function or define_function with duplicate names and varying argument counts can crash the Ruby process. Version 2.9.5 retains all function blocks for the database object lifetime instead of overwriting them in a name-keyed collection.
You are affected if you are using a version that falls within the vulnerable range.
sqlite3 is vulnerable to Use After Free in versions 0.0.1 - 2.9.4.
Upgrade the sqlite3 and/or the sqlite3-ruby library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant