sqlite3 — security advisory
An integer overflow can be triggered in SQLite’s `concat_ws()` function. The resulting, truncated integer is then used to allocate a buffer. When SQLite then writes the resulting string to the buffer, it uses the original, untruncated size and thus a wild Heap Buffer overflow of size ~4GB can be triggered. This can result in arbitrary code execution.
- Products
- sqlite3
- Affected versions
- Not specified
- Fixed versions
- 3.46.1-3
- CVEs
- CVE-2025-3277
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 16:20 UTC · Revision 1
Source evidence
An integer overflow can be triggered in SQLite’s `concat_ws()` function. The resulting, truncated integer is then used to allocate a buffer. When SQLite then writes the resulting string to the buffer, it uses the original, untruncated size and thus a wild Heap Buffer overflow of size ~4GB can be triggered. This can result in arbitrary code execution.
osv:DEBIAN-CVE-2025-3277
sqlite3
Fixed versions: 3.46.1-3
sqlite3
Fixed versions: 3.46.1-3
Complete source record
{
"id": "badeb34a9d99bd9b2caf7ed6e3be74b012446201a8edf44baa712dd0cf6a9550",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2025-3277",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2025-3277",
"summary": "An integer overflow can be triggered in SQLite’s `concat_ws()` function. The resulting, truncated integer is then used to allocate a buffer. When SQLite then writes the resulting string to the buffer, it uses the original, untruncated size and thus a wild Heap Buffer overflow of size ~4GB can be triggered. This can result in arbitrary code execution.",
"evidence": "osv:DEBIAN-CVE-2025-3277",
"products": [
{
"name": {
"value": "sqlite3",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.46.1-3",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "sqlite3",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.46.1-3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2025-3277",
"aliases": [
"DEBIAN-CVE-2025-3277"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.46.1-3"
}
]
}
],
"package": {
"name": "sqlite3",
"purl": "pkg:deb/debian/sqlite3?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-3277.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.46.1-3"
}
]
}
],
"package": {
"name": "sqlite3",
"purl": "pkg:deb/debian/sqlite3?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2025-3277.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T09:47:29.826044619Z",
"provider": "osv",
"upstream": [
"CVE-2025-3277"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2025-3277"
]
},
"related_cves": [
{
"value": "CVE-2025-3277",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 327507,
"published_at": "2025-04-14T17:15:27.297+00:00"
}