Medium
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
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-3277
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 19:37 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:CVE-2025-3277
Complete source record
{
"id": "6049d65dc571c9bc9a999e5ff080114d952114c416013b09c9717da2096acec1",
"url": "https://osv.dev/vulnerability/CVE-2025-3277",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "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:CVE-2025-3277",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-3277",
"aliases": [
"BIT-sqlite-2025-3277",
"CVE-2025-3277"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/sqlite/sqlite",
"type": "GIT",
"events": [
{
"introduced": "66476771b77e3c0df9d406d912486c43ac726fab"
},
{
"fixed": "3cd92ce875fd4e5601e535c35fef33494a6684e3"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.44.0"
},
{
"fixed": "3.49.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"version-3.49.0",
"version-3.48.0",
"relase",
"major-relase",
"version-3.47.0",
"version-3.46.0",
"version-3.45.0",
"version-3.44.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-3277.json"
}
}
],
"modified": "2026-10-28T02:30:38.590672837Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
"https://cert-portal.siemens.com/productcert/html/ssa-994087.html",
"https://sqlite.org/src/info/498e3f1cf57f164f",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3277.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-3277"
],
"provider_metadata": {
"cwe_ids": [
"CWE-122"
],
"cna_assigner": "Google",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "3.49.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3277.json"
}
},
"related_cves": [
{
"value": "CVE-2025-3277",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506251,
"published_at": "2025-04-14T16:50:48.902+00:00"
}