Heap-based buffer overflow in sqlite
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA sqlite (SQLite) Fixed in 3.49.1
Red Hat 3 advisories
- RHSA-2025:7517 Released 2025-05-13 · Red Hat rating Importantsqlite security update
- Red Hat Enterprise Linux AppStream (v. 10) sqlite-3.46.1-4.el10_0, sqlite-devel-3.46.1-4.el10_0
- Red Hat Enterprise Linux BaseOS (v. 10) sqlite-3.46.1-4.el10_0, sqlite-libs-3.46.1-4.el10_0
- RHSA-2025:7433 Released 2025-05-13 · Red Hat rating Importantnodejs:22 security update
- Red Hat Enterprise Linux AppStream (v. 9) nodejs-1:22.15.0-1.module+el9.6.0+23062+9e7801b9.aarch64::nodejs:22, nodejs-1:22.15.0-1.module+el9.6.0+23062+9e7801b9.ppc64le::nodejs:22, nodejs-1:22.15.0-1.module+el9.6.0+23062+9e7801b9.s390x::nodejs:22 +28
- RHSA-2025:4459 Released 2025-05-05 · Red Hat rating Importantnodejs:22 security update
- Red Hat Enterprise Linux AppStream (v. 8) nodejs-1:22.15.0-1.module+el8.10.0+23068+28ff2340.aarch64::nodejs:22, nodejs-1:22.15.0-1.module+el8.10.0+23068+28ff2340.ppc64le::nodejs:22, nodejs-1:22.15.0-1.module+el8.10.0+23068+28ff2340.s390x::nodejs:22 +28
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:7517 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2025:4459 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2025:7433 |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2025:7517 |
Not affected: 5 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-10-02 Threatist record created from CVE-2025-3277
- 2026-10-03 Alias added: GHSA-g2ph-wvc2-ph4v
References
More Sqlite vulnerabilities
- TI-2026-82983 Heap buffer overflow in SQLite FTS5 rowid list merging CVSS 4.0HIGH 8.5
- TI-2025-43154 An information disclosure issue in the zipfileInflate function in the zipfile extension… CVSS 3.1HIGH 7.5
- TI-2025-06334 Integer Truncation on SQLite CVSS 4.0HIGH 7.2
- TI-2022-16180 SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if… CVSS 3.1HIGH 7.5
- TI-2021-11445 An issue found in SQLite SQLite3 v.3.35.4 that allows a remote attacker to cause a denial… CVSS 3.1HIGH 7.5
- TI-2019-06073 Out-of-bounds read in SQLite CVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-3277 · CVE Program
- CVE-2025-3277 · NVD
- FIRST EPSS
- GHSA-g2ph-wvc2-ph4v · GitHub Advisory Database · CC BY 4.0
- CVE-2025-3277 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences