GHSA-mwm8-39rw-8826: sqlite3-ruby: Use-After-Free in SQLite Aggregate Arguments in Heap-Allocated Argument Array
Using Database#create_aggregate, #create_aggregate_handler, or Database#define_aggregator to define an aggregate function that takes two or more arguments, and then evaluating it over TEXT or BLOB column values, can free the Ruby objects holding those arguments while a later argument is still being converted, during ordinary garbage collection. The aggregate’s step method then receives an incorrect object, or the process crashes with a segmentation fault.
References
- github.com/advisories/GHSA-mwm8-39rw-8826
- github.com/sparklemotion/sqlite3-ruby/commit/cc5ac0cdf05af8148f4363410da0ba32508d9c97
- github.com/sparklemotion/sqlite3-ruby/pull/733
- github.com/sparklemotion/sqlite3-ruby/releases/tag/v2.9.6
- github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-mwm8-39rw-8826
Code Behaviors & Features
Detect and mitigate GHSA-mwm8-39rw-8826 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →