CVE Catalog

CVE-2025-3277

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.83%

57th percentile - higher than 57% of all known CVEs

Summary

An integer overflow can be triggered in SQLite's concat_ws() function. The resulting truncated integer is used to allocate a buffer, but the original untruncated size is used when writing the resulting string, leading to a heap buffer overflow of about 4GB that can result in arbitrary code execution.

Risk Assessment

Arbitrary code execution in the context of the process using SQLite is possible, potentially leading to full application compromise. The risk is high in systems processing untrusted SQL queries.

Recommendation

Update SQLite to a version containing the fix for this bug. Restrict the ability to execute untrusted SQL queries through the concat_ws() function.

Other vulnerabilities in SQLite

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS