{"schemaVersion":3,"id":"CVE-2025-3277","aliases":["ALPINE-CVE-2025-3277","RHSA-2025:7517","UBUNTU-CVE-2025-3277","DEBIAN-CVE-2025-3277"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2025-04-14T16:50:48.902Z","modified":"2026-10-15T01:02:02.335Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":10,"impact":5.7,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01252,"percentile":0.69005,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.42400000000000004,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00828},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01252,"percentile":0.69005}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00828,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01252,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01252,"percentile":0.69005}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"},{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"alpine","product":"sqlite","name":"sqlite","label":"sqlite","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/sqlite","purlType":"apk","versions":[{"text":"≥ 3.44.0, < 3.48.0-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.44.0, < 3.48.0-r1","eol":null,"hubHref":null},{"vendor":"debian","product":"sqlite3","name":"sqlite3","label":"sqlite3","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/sqlite3","purlType":"deb","versions":[{"text":"< 3.46.1-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.46.1-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"sqlite3","name":"sqlite3","label":"sqlite3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/sqlite3","purlType":"deb","versions":[{"text":"< 3.45.1-1ubuntu2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.45.1-1ubuntu2.3","eol":null,"hubHref":null},{"vendor":"redhat","product":"lemon-debuginfo","name":"lemon-debuginfo","label":"lemon-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/lemon-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite","name":"sqlite","label":"sqlite","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-analyzer-debuginfo","name":"sqlite-analyzer-debuginfo","label":"sqlite-analyzer-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-analyzer-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-debuginfo","name":"sqlite-debuginfo","label":"sqlite-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-debugsource","name":"sqlite-debugsource","label":"sqlite-debugsource","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-debugsource","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-devel","name":"sqlite-devel","label":"sqlite-devel","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-devel","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-libs","name":"sqlite-libs","label":"sqlite-libs","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-libs","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-libs-debuginfo","name":"sqlite-libs-debuginfo","label":"sqlite-libs-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-libs-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-tcl-debuginfo","name":"sqlite-tcl-debuginfo","label":"sqlite-tcl-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-tcl-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"redhat","product":"sqlite-tools-debuginfo","name":"sqlite-tools-debuginfo","label":"sqlite-tools-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/sqlite-tools-debuginfo","purlType":"rpm","versions":[{"text":"< 0:3.46.1-4.el10_0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:3.46.1-4.el10_0","eol":null,"hubHref":null},{"vendor":"sqlite","product":"sqlite","name":"sqlite","label":"sqlite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.49.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.44.0, < 3.49.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.49.1 | ≥ 3.44.0, < 3.49.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"sqlite","label":"SQLite","category":"database"}},"hubHref":"/vendor/sqlite/sqlite"}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://sqlite.org/src/info/498e3f1cf57f164f","label":"sqlite.org/src/info/498e3f1cf57f164f","hostname":"sqlite.org","tags":["ARTICLE","Patch"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-3277","label":"security.alpinelinux.org/vuln/CVE-2025-3277","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2025:7517","label":"access.redhat.com/errata/RHSA-2025:7517","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2359553","label":"bugzilla.redhat.com/show_bug.cgi?id=2359553","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_7517.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_7517.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-3277","label":"access.redhat.com/security/cve/CVE-2025-3277","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-3277","label":"www.cve.org/CVERecord?id=CVE-2025-3277","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-3277","label":"nvd.nist.gov/vuln/detail/CVE-2025-3277","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-3277","label":"ubuntu.com/security/CVE-2025-3277","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7528-1","label":"ubuntu.com/security/notices/USN-7528-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-3277","label":"security-tracker.debian.org/tracker/CVE-2025-3277","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"cert-portal.siemens.com/productcert/html/ssa-398330.html","hostname":"cert-portal.siemens.com","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-994087.html","label":"cert-portal.siemens.com/productcert/html/ssa-994087.html","hostname":"cert-portal.siemens.com","tags":[]}],"lineage":{"upstream":[],"downstream":["RHSA-2025:4459","RHSA-2025:7433","SUSE-SU-2025:01455-1","SUSE-SU-2025:01456-1","SUSE-SU-2025:01456-2","SUSE-SU-2025:1455-1","SUSE-SU-2025:1456-1","USN-7528-1"],"duplicates":[],"related":["SUSE-SU-2025:01455-1","SUSE-SU-2025:01456-1","SUSE-SU-2025:01456-2","SUSE-SU-2025:1455-1","SUSE-SU-2025:1456-1","USN-7528-1"]},"timeline":[{"kind":"published","date":"2025-04-14T16:50:48.902Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-15T01:02:02.335Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:27:55.641Z","stale":false,"partial":false}}