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.
{
"cwe_ids": [
"CWE-122"
],
"cna_assigner": "Google",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3277.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "3.49.1"
}
],
"source": "AFFECTED_FIELD"
}
]
}