CVE-2025-29087

Name
CVE-2025-29087
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
cve@mitre.org https://gist.github.com/ylwango613/a44a29f1ef074fa783e29f04a0afd62a
cve@mitre.org https://sqlite.org/releaselog/3_49_1.html
cve@mitre.org https://www.sqlite.org/cves.html

Match rules

CPE URI Source package Min version Max version
sqlite >= 3.44.0 < 3.49.1

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
sqlite edge-main 3.47.1-r0 Celeste <cielesti@protonmail.com> possibly vulnerable
sqlite edge-main 3.47.2-r0 Celeste <cielesti@protonmail.com> possibly vulnerable
sqlite edge-main 3.48.0-r0 Celeste <cielesti@protonmail.com> possibly vulnerable
sqlite edge-main 3.49.0-r0 Celeste <cielesti@protonmail.com> possibly vulnerable
sqlite edge-main 3.48.0-r1 Celeste <cielesti@protonmail.com> possibly vulnerable
sqlite edge-main 3.49.0-r1 Celeste <cielesti@protonmail.com> possibly vulnerable
sqlite 3.21-main 3.48.0-r1 Celeste <cielesti@protonmail.com> fixed
sqlite 3.20-main 3.45.3-r2 Celeste <cielesti@protonmail.com> fixed
sqlite 3.19-main 3.44.2-r1 Carlo Landmeter <clandmeter@alpinelinux.org> fixed