CVE-2025-29087 Integer overflow in SQLite
An integer overflow in SQLite's concat_ws function allows attackers to trigger a buffer overflow, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-29087?
CVE-2025-29087 is a low-severity vulnerability in Sqlite Sqlite, published on 7 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-190
Which versions are affected by CVE-2025-29087?
1 open source package ship an affected version, including sqlite. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sqlite Bitnami | From 3.44.0 | 3.49.1 |
Products include Sqlite Sqlite.
How do I fix CVE-2025-29087?
Upgrade sqlite to 3.49.1 or later.
Is CVE-2025-29087 being exploited?
There is no known exploitation of CVE-2025-29087 in the wild and no public exploit code.
Other vulnerabilities in Sqlite Sqlite
Sources
Also known as ALPINE-CVE-2025-29087, BELL-CVE-2025-29087, BIT-sqlite-2025-29087, DEBIAN-CVE-2025-29087, GHSA-6j35-rq42-fv6v, MINI-5789-c952-wmp2 and 2 more.