{"id":"UBUNTU-CVE-2025-3277","details":"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.","modified":"2026-01-30T02:19:16.727730Z","published":"2025-04-14T17:15:00Z","related":["USN-7528-1"],"upstream":["CVE-2025-3277"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-3277"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-3277"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7528-1"}],"affected":[{"package":{"name":"sqlite3","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sqlite3@3.45.1-1ubuntu2.3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.45.1-1ubuntu2.3"}]}],"versions":["3.42.0-1","3.44.0-1","3.44.2-1","3.45.0-1","3.45.1-1","3.45.1-1ubuntu1","3.45.1-1ubuntu2","3.45.1-1ubuntu2.1"],"ecosystem_specific":{"binaries":[{"binary_name":"lemon","binary_version":"3.45.1-1ubuntu2.3"},{"binary_name":"libsqlite3-0","binary_version":"3.45.1-1ubuntu2.3"},{"binary_name":"libsqlite3-dev","binary_version":"3.45.1-1ubuntu2.3"},{"binary_name":"libsqlite3-tcl","binary_version":"3.45.1-1ubuntu2.3"},{"binary_name":"sqlite3","binary_version":"3.45.1-1ubuntu2.3"},{"binary_name":"sqlite3-tools","binary_version":"3.45.1-1ubuntu2.3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-3277.json"}}],"schema_version":"1.7.3","severity":[{"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"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}