CVE-2025-29087
In SQLite 3.44.0 through 3.49.0 before 3.49.1, the concat_ws() SQL function can cause memory to be written beyond the end of a malloc-allocated buffer. If the separator argument is attacker-controlled and has a large string (e.g., 2MB or more), an integer overflow occurs in calculating the size of the result buffer, and thus malloc may not allocate enough memory.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | sqlite3 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | sqlite3 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | sqlite3 | Fixed | 3.45.1-1ubuntu2.3 | UBUNTU-CVE-2025-29087 |
| Ubuntu 22.04 | sqlite | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | sqlite3 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | sqlite | Not affected vulnerable_code_not_present | ||
| Debian 14 | sqlite3 | Fixed | 3.46.1-3 | DEBIAN-CVE-2025-29087 |
| Debian 13 | sqlite3 | Fixed | 3.46.1-3 | DEBIAN-CVE-2025-29087 |
| Red Hat Enterprise Linux 10 | sqlite | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 10 | sqlite-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 10 | sqlite-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cargo | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | clippy | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | npm | Not affected | ||
| Red Hat Enterprise Linux 9 | rust | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-analysis | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-analyzer | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-debugger-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-doc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-gdb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-lldb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-src | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-std-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-unknown-unknown | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasi | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasip1 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rust-toolset | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | rustfmt | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | sqlite | Not affected | ||
| Red Hat Enterprise Linux 9 | sqlite-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | sqlite-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | cargo | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cargo-doc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | clippy | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | lemon | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw-sqlite | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw32-sqlite | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw32-sqlite-static | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw64-sqlite | Not affected | ||
| Red Hat Enterprise Linux 8 | mingw64-sqlite-static | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | npm | Not affected | ||
| Red Hat Enterprise Linux 8 | rls | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-analysis | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-analyzer | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-debugger-common | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-doc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-gdb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-lldb | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-src | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-std-static | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-std-static-wasm32-unknown-unknown | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-std-static-wasm32-wasi | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rust-toolset | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rustfmt | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | sqlite | Not affected | ||
| Red Hat Enterprise Linux 8 | sqlite-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | sqlite-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | sqlite-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | lemon | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | sqlite | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | sqlite-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | sqlite-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | sqlite-tcl | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | lemon | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | sqlite | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | sqlite-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | sqlite-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | sqlite-tcl | Will not fix Out of support scope | ||
| Alpine Linux 3.21 | sqlite | Fixed | 3.48.0-r1 | ALPINE-CVE-2025-29087 |
| Alpine Linux 3.20 | sqlite | Fixed | 3.45.3-r2 | ALPINE-CVE-2025-29087 |
| Alpine Linux 3.19 | sqlite | Fixed | 3.44.2-r1 | ALPINE-CVE-2025-29087 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SQLite: affected: 3.44.0 to before 3.49.1; fixed in
3.49.1
References
- https://www.sqlite.org/cves.html
- https://gist.github.com/ylwango613/a44a29f1ef074fa783e29f04a0afd62a
- https://sqlite.org/releaselog/3_49_1.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.