ruby-sqlite3 — security advisory
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.
- Products
- ruby-sqlite3
- Affected versions
- 1.3.10-1, 1.3.11-1, 1.3.11-1build1, 1.3.11-2, 1.3.11-2build1, 1.3.13-1, 1.3.13-1build1, 1.3.13-1build2, 1.4.2-2build1, 1.4.2-3, 1.4.2-3build1, 1.4.2-4, 1.4.2-4build2, 1.4.2-4build3, 1.4.2-4build4, 1.7.3-1, 1.7.3-2, 2.9.5-2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-54620
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:46 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-54620
ruby-sqlite3
Fixed versions: Not specified
ruby-sqlite3
Fixed versions: Not specified
ruby-sqlite3
Fixed versions: Not specified
ruby-sqlite3
Fixed versions: Not specified
ruby-sqlite3
Fixed versions: Not specified
ruby-sqlite3
Fixed versions: Not specified
ruby-sqlite3
Fixed versions: Not specified
Complete source record
{
"id": "007ccd17595b4a2b9049606a0f0d1b01c2acc82d1c7768bbc8d3f6c92a60d95a",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-54620",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-54620",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-54620",
"products": [
{
"name": {
"value": "ruby-sqlite3",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.3.10-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.3.11-1",
"evidence": "/affected/0/versions"
},
{
"value": "1.3.11-1build1",
"evidence": "/affected/0/versions"
},
{
"value": "1.3.11-2",
"evidence": "/affected/0/versions"
},
{
"value": "1.3.11-2build1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "ruby-sqlite3",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.3.13-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.3.13-1build1",
"evidence": "/affected/1/versions"
},
{
"value": "1.3.13-1build2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "ruby-sqlite3",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.3.13-1build2",
"evidence": "/affected/2/versions"
},
{
"value": "1.4.2-2build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "ruby-sqlite3",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.2-3",
"evidence": "/affected/3/versions"
},
{
"value": "1.4.2-3build1",
"evidence": "/affected/3/versions"
},
{
"value": "1.4.2-4",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "ruby-sqlite3",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.2-4build2",
"evidence": "/affected/4/versions"
},
{
"value": "1.4.2-4build3",
"evidence": "/affected/4/versions"
},
{
"value": "1.4.2-4build4",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "ruby-sqlite3",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.7.3-2",
"evidence": "/affected/5/versions"
},
{
"value": "2.9.5-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "ruby-sqlite3",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.7.3-1",
"evidence": "/affected/6/versions"
},
{
"value": "1.7.3-2",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "low",
"structured": {
"id": "UBUNTU-CVE-2026-54620",
"aliases": [
"UBUNTU-CVE-2026-54620"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-sqlite3",
"purl": "pkg:deb/ubuntu/ruby-sqlite3?arch=source&distro=xenial",
"ecosystem": "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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54620.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-sqlite3",
"binary_version": "1.3.11-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-sqlite3",
"purl": "pkg:deb/ubuntu/ruby-sqlite3?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.3.13-1",
"1.3.13-1build1",
"1.3.13-1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54620.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-sqlite3",
"binary_version": "1.3.13-1build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-sqlite3",
"purl": "pkg:deb/ubuntu/ruby-sqlite3?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.3.13-1build2",
"1.4.2-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54620.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-sqlite3",
"binary_version": "1.4.2-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-sqlite3",
"purl": "pkg:deb/ubuntu/ruby-sqlite3?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.4.2-3",
"1.4.2-3build1",
"1.4.2-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54620.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-sqlite3",
"binary_version": "1.4.2-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-sqlite3",
"purl": "pkg:deb/ubuntu/ruby-sqlite3?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.4.2-4build2",
"1.4.2-4build3",
"1.4.2-4build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54620.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-sqlite3",
"binary_version": "1.4.2-4build4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-sqlite3",
"purl": "pkg:deb/ubuntu/ruby-sqlite3?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.7.3-2",
"2.9.5-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54620.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-sqlite3",
"binary_version": "2.9.5-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ruby-sqlite3",
"purl": "pkg:deb/ubuntu/ruby-sqlite3?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.7.3-1",
"1.7.3-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-54620.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ruby-sqlite3",
"binary_version": "1.7.3-2"
}
]
}
}
],
"modified": "2026-10-17T12:59:06.772346702Z",
"provider": "osv",
"upstream": [
"CVE-2026-54620"
],
"references": [
"https://ubuntu.com/security/CVE-2026-54620",
"https://www.cve.org/CVERecord?id=CVE-2026-54620",
"https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-j7fr-3v8c-3qc3",
"https://github.com/sparklemotion/sqlite3-ruby/pull/711"
]
},
"related_cves": [
{
"value": "CVE-2026-54620",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359307,
"published_at": "2026-07-28T17:16:00+00:00"
}