VulnarioBlogSQLite vulnerabilities
SQLite Vulnerabilities: The 10 Most Critical SQLite Security Bugs (CVEs)
SQLite vulnerabilities are security flaws in SQLite that attackers can abuse to steal data, take over a server or interrupt a service. SQLite is an embedded SQL database engine found in countless applications. The National Vulnerability Database (NVD) lists 76 CVEs for SQLite, 8 of them rated critical, and 14 were published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.
This guide lists the 10 most critical SQLite security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers SQLite security basics, the current end-of-life dates and a free way to be told about the next SQLite CVE as soon as it is published.
Key takeaways
- No SQLite CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
- 8 SQLite CVEs are rated critical (CVSS v3), and 14 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2025-7458, published Jul 29, 2025.
- Supported SQLite releases today (per endoflife.date): 3. Releases not on the list are past their announced end of life.
- You can monitor SQLite for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these SQLite CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical SQLite CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2025-3277 | 9.8 Critical | 2025-04-14 | Heap buffer overflow | No |
| 2 | CVE-2020-35527 | 9.8 Critical | 2022-09-01 | Memory buffer overflow | No |
| 3 | CVE-2020-11656 | 9.8 Critical | 2020-04-09 | Use after free | No |
| 4 | CVE-2019-19646 | 9.8 Critical | 2019-12-09 | Improper check for unusual conditions | No |
| 5 | CVE-2019-19317 | 9.8 Critical | 2019-12-05 | Incorrect numeric conversion | No |
| 6 | CVE-2019-8457 | 9.8 Critical | 2019-05-30 | Out-of-bounds read | No |
| 7 | CVE-2017-10989 | 9.8 Critical | 2017-07-07 | Out-of-bounds read | No |
| 8 | CVE-2025-7458 | 9.1 Critical | 2025-07-29 | Integer overflow | No |
| 9 | CVE-2019-5018 | 8.1 High | 2019-05-10 | Use after free | No |
| 10 | CVE-2018-20506 | 8.1 High | 2019-04-03 | Integer overflow | No |
Each SQLite CVE explained
1. CVE-2025-3277: Heap buffer overflow
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 3.44.0 to before 3.49.1
- What to do
- Upgrade to 3.49.1 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
2. CVE-2020-35527: Memory buffer overflow
- What NVD says
- In SQLite 3.31.1, there is an out of bounds access problem through ALTER TABLE for views that have a nested FROM clause.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 3.31.1
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
3. CVE-2020-11656: Use after free
- What NVD says
- In SQLite through 3.31.1, the ALTER TABLE implementation has a use-after-free, as demonstrated by an ORDER BY clause that belongs to a compound SELECT statement.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- up to and including 3.31.1
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
4. CVE-2019-19646: Improper check for unusual conditions
- What NVD says
- pragma.c in SQLite through 3.30.1 mishandles NOT NULL in an integrity_check PRAGMA command in certain cases of generated columns.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- up to and including 3.30.1
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
5. CVE-2019-19317: Incorrect numeric conversion
- What NVD says
- lookupName in resolve.c in SQLite 3.30.1 omits bits from the colUsed bitmask in the case of a generated column, which allows attackers to cause a denial of service or possibly have unspecified other impact.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 3.30.1
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
6. CVE-2019-8457: Out-of-bounds read
- What NVD says
- SQLite3 from 3.6.0 to and including 3.27.2 is vulnerable to heap out-of-bound read in the rtreenode() function when handling invalid rtree tables.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 3.6.0 through 3.27.2
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
7. CVE-2017-10989: Out-of-bounds read
- What NVD says
- The getNodeSize function in ext/rtree/rtree.c in SQLite through 3.19.3, as used in GDAL and other products, mishandles undersized RTree blobs in a crafted database, leading to a heap-based buffer over-read or possibly unspecified other impact.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- up to and including 3.19.3
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
8. CVE-2025-7458: Integer overflow
- What NVD says
- An integer overflow in the sqlite3KeyInfoFromExprList function in SQLite versions 3.39.2 through 3.41.1 allows an attacker with the ability to execute arbitrary SQL statements to cause a denial of service or disclose sensitive information from process memory via a crafted SELECT statement with a large number of expressions in the ORDER BY clause.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality and availability.
- Affected versions
- 3.39.2 to before 3.41.2
- What to do
- Upgrade to 3.41.2 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
9. CVE-2019-5018: Use after free
- What NVD says
- An exploitable use after free vulnerability exists in the window function functionality of Sqlite3 3.26.0. A specially crafted SQL command can cause a use after free vulnerability, potentially resulting in remote code execution. An attacker can send a malicious SQL command to trigger this vulnerability.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 3.26.0
- What to do
- Apply the vendor's security update for your release and restart the service.
10. CVE-2018-20506: Integer overflow
- What NVD says
- SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries in a "merge" operation that occurs 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).
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- before 3.25.3
- What to do
- Upgrade to 3.25.3 or a later release, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
SQLite end of life: which versions still get security fixes
Running a release that still receives security fixes is the most effective way to avoid SQLite vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported SQLite releases are 3.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| SQLite 3 | Sep 18, 2004 | Not announced | 3.54.1 | Supported |
| SQLite 2 | Sep 28, 2001 | Sep 18, 2004 | 2.8.17 | End of life |
| SQLite 1 | Aug 17, 2000 | Sep 28, 2001 | 1.0.32 | End of life |
Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.
How to check if your SQLite is vulnerable
Find the exact version first, then compare it with the affected and fixed versions in each CVE above.
sqlite3 --version
On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.
SQLite security checklist
- Never expose the database port to the internet; allow only the application servers.
- Use strong, unique credentials and least-privilege accounts for each application.
- Apply minor and security releases on a regular cadence, after testing.
- Encrypt connections with TLS and encrypt backups.
- Restrict or remove admin tools you do not need.
- Test restoring from backup, not only creating backups.
Your stack is bigger than SQLite. A flaw anywhere in the chain can be the way in, so also review our guides to Python vulnerabilities, PHP vulnerabilities and MySQL vulnerabilities.
How to get alerted about new SQLite vulnerabilities
NVD received 14 new SQLite CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose SQLite and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run SQLite alone. These guides cover the technologies it is most often deployed with.
- Python vulnerabilities: Python is one of the most popular programming languages for web, data and automation.
- PHP vulnerabilities: PHP is the server-side language behind WordPress and most of the web.
- MySQL vulnerabilities: MySQL is the world's most widely used open-source relational database.
- Apache Cassandra vulnerabilities: Apache Cassandra is a distributed NoSQL database built for scale and availability.
- CouchDB vulnerabilities: Apache CouchDB is a document-oriented NoSQL database with an HTTP API.
- Elasticsearch vulnerabilities: Elasticsearch is a distributed search and analytics engine.
Frequently asked questions about SQLite vulnerabilities
What are the most critical SQLite vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical SQLite CVEs include CVE-2025-3277 (CVSS 9.8), CVE-2020-35527 (CVSS 9.8), CVE-2020-11656 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have SQLite vulnerabilities been exploited in real attacks?
For the SQLite product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep SQLite patched.
How many vulnerabilities does SQLite have?
As of Nov 3, 2026 the National Vulnerability Database lists 76 CVEs for SQLite, with 8 rated critical by CVSS v3. 14 were published in the previous twelve months.
Which SQLite versions are still supported?
As of Nov 3, 2026, endoflife.date lists these SQLite releases as supported: 3. Releases that are not listed are past their announced end of life.
How do I check which SQLite version I run?
Run sqlite3 --version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.
How can I get alerted when a new SQLite CVE is published?
Add SQLite to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose SQLite and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is SQLite secure?
SQLite is as secure as its patch level. NVD published 14 new SQLite CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2025-3277?
CVE-2025-3277 is a critical SQLite vulnerability with a CVSS score of 9.8, published Apr 14, 2025. An integer overflow can be triggered in SQLite’s `concat_ws()` function. The resulting, truncated integer is then used to allocate a buffer.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: SQLite (opens in a new tab), release and support dates, checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.