Loading advisory.
Loading advisory.
sqlite3-ruby has Use-After-Free When Redefining SQLite Functions with Different Arity
Using 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.
Published 2026-07-28 16:21 UTC · Modified 2026-07-28 19:33 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| sqlite3-ruby | RubyGems | < 2.9.5 versions 0.5.0, 0.6.0, 0.9.0, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.3.0, 1.3.0.beta.1, 1.3.0.beta.2, 1.3.1, 1.3.2, 1.3.3, 1.3.3.beta.1 | 2.9.5 | gem install sqlite3-ruby -v 2.9.5 |
| sqlite3 | RubyGems | < 2.9.5 versions 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.1.0, 0.1.1, 1.3.10, 1.3.11, 1.3.12, 1.3.13, 1.3.3, 1.3.3.beta.1, 1.3.4, 1.3.5, 1.3.6 and 63 more | 2.9.5 | gem install sqlite3 -v 2.9.5 |
Using 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.
Upgrade to sqlite3 gem v2.9.5 or later.
As a workaround, avoid defining multiple custom functions with the same name (varying numbers of arguments or encoding).
The 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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.001 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.001 | first score | v2026.06.15 |