sqlite3 is vulnerable to Use After Free
37
Low Risk
The sqlite3 Ruby gem wires aggregate function callbacks from Ruby into SQLite through the native extension. If a prepared statement that calls a user-defined aggregate is stepped after the database is soft-closed, SQLite may invoke callback objects that were released when the database cleared its aggregator references, and garbage collection can cause an invalid memory read and segmentation fault. Applications that keep statements open across close while using create_aggregate, create_aggregate_handler, or define_aggregator can crash. Version 2.9.5 stops clearing aggregator references on close so callbacks remain valid for open statements.
You are affected if you are using a version that falls within the vulnerable range.
sqlite3 is vulnerable to Use After Free in versions 2.1.0 - 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