p PatchFirst

CVE-2026-54620

CVE-2026-54620 · sqlite3-ruby has Use-After-Free in SQLite Aggregate Function Callbacks

CVSS 2.0 · Low · EPSS 0.1% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="ruby-sqlite3"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

sqlite3 provides Ruby bindings for the SQLite3 embedded database. From 2.1.0 to 2.9.4, the callbacks used for SQLite aggregate functions can be freed while still referenced during aggregation, resulting in a use-after-free. This issue is fixed in version 2.9.5.

Published
Updated

Stack: system · ruby

Affected products and versions

  • sqlite3-ruby

    Versions
    • >= 2.1.0, < 2.9.5: Affected

    No fix published

  • ruby-sqlite3 Debian 12

    Versions
    • 1.4.2-4
    • 1.6.9-1
    • 1.6.9-2
    • 1.7.3-1
    • 1.7.3-2
    • 2.10.0-1~exp1
    All versions (13)
    • 2.9.0-1
    • 2.9.1-1
    • 2.9.3-1
    • 2.9.5-1
    • 2.9.5-2
    • 2.9.6-1
    • 2.9.6-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Debian 13

    Versions
    • 1.7.3-1
    • 1.7.3-2
    • 2.10.0-1~exp1
    • 2.9.0-1
    • 2.9.1-1
    • 2.9.3-1
    All versions (10)
    • 2.9.5-1
    • 2.9.5-2
    • 2.9.6-1
    • 2.9.6-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Debian 14

    Versions
    • 1.7.3-1
    • 1.7.3-2
    • 2.9.0-1
    • 2.9.1-1
    • 2.9.3-1
    Affected ranges
    • ECOSYSTEM: < 2.9.5-1

    Update to 2.9.5-1

  • sqlite3-ruby RubyGems

    Affected ranges
    • ECOSYSTEM: ≥ 2.1.0, < 2.9.5

    Update to 2.9.5

  • sqlite3 RubyGems

    Versions
    • 2.1.0
    • 2.1.1
    • 2.2.0
    • 2.3.0
    • 2.3.1
    • 2.4.0
    All versions (23)
    • 2.4.1
    • 2.5.0
    • 2.5.0.rc1
    • 2.6.0
    • 2.7.0
    • 2.7.1
    • 2.7.2
    • 2.7.3
    • 2.7.4
    • 2.8.0
    • 2.8.1
    • 2.9.0
    • 2.9.1
    • 2.9.2
    • 2.9.2.rc2
    • 2.9.3
    • 2.9.4
    Affected ranges
    • ECOSYSTEM: ≥ 2.1.0, < 2.9.5

    Update to 2.9.5

  • ruby-sqlite3 Ubuntu 16.04 LTS

    Versions
    • 1.3.10-1
    • 1.3.11-1
    • 1.3.11-1build1
    • 1.3.11-2
    • 1.3.11-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 18.04 LTS

    Versions
    • 1.3.13-1
    • 1.3.13-1build1
    • 1.3.13-1build2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 20.04 LTS

    Versions
    • 1.3.13-1build2
    • 1.4.2-2build1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 22.04 LTS

    Versions
    • 1.4.2-3
    • 1.4.2-3build1
    • 1.4.2-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 24.04 LTS

    Versions
    • 1.4.2-4build2
    • 1.4.2-4build3
    • 1.4.2-4build4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 26.10

    Versions
    • 1.7.3-2
    • 2.9.5-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ruby-sqlite3 Ubuntu 26.04 LTS

    Versions
    • 1.7.3-1
    • 1.7.3-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →