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

Most critical SQLite vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2025-32779.8 Critical2025-04-14Heap buffer overflowNo
2CVE-2020-355279.8 Critical2022-09-01Memory buffer overflowNo
3CVE-2020-116569.8 Critical2020-04-09Use after freeNo
4CVE-2019-196469.8 Critical2019-12-09Improper check for unusual conditionsNo
5CVE-2019-193179.8 Critical2019-12-05Incorrect numeric conversionNo
6CVE-2019-84579.8 Critical2019-05-30Out-of-bounds readNo
7CVE-2017-109899.8 Critical2017-07-07Out-of-bounds readNo
8CVE-2025-74589.1 Critical2025-07-29Integer overflowNo
9CVE-2019-50188.1 High2019-05-10Use after freeNo
10CVE-2018-205068.1 High2019-04-03Integer overflowNo

Each SQLite CVE explained

1. CVE-2025-3277: Heap buffer overflow

  • CVSS 9.8 Critical
  • Published 2025-04-14
  • CWE-122
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)

NVD record for CVE-2025-3277 (opens in a new tab)

2. CVE-2020-35527: Memory buffer overflow

  • CVSS 9.8 Critical
  • Published 2022-09-01
  • CWE-119
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).

NVD record for CVE-2020-35527 (opens in a new tab)

3. CVE-2020-11656: Use after free

  • CVSS 9.8 Critical
  • Published 2020-04-09
  • CWE-416
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).

NVD record for CVE-2020-11656 (opens in a new tab)

4. CVE-2019-19646: Improper check for unusual conditions

  • CVSS 9.8 Critical
  • Published 2019-12-09
  • CWE-754
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).

NVD record for CVE-2019-19646 (opens in a new tab)

5. CVE-2019-19317: Incorrect numeric conversion

  • CVSS 9.8 Critical
  • Published 2019-12-05
  • CWE-681
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).

NVD record for CVE-2019-19317 (opens in a new tab)

6. CVE-2019-8457: Out-of-bounds read

  • CVSS 9.8 Critical
  • Published 2019-05-30
  • CWE-125
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).

NVD record for CVE-2019-8457 (opens in a new tab)

7. CVE-2017-10989: Out-of-bounds read

  • CVSS 9.8 Critical
  • Published 2017-07-07
  • CWE-125
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).

NVD record for CVE-2017-10989 (opens in a new tab)

8. CVE-2025-7458: Integer overflow

  • CVSS 9.1 Critical
  • Published 2025-07-29
  • CWE-190
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)

NVD record for CVE-2025-7458 (opens in a new tab)

9. CVE-2019-5018: Use after free

  • CVSS 8.1 High
  • Published 2019-05-10
  • CWE-416
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.

NVD record for CVE-2019-5018 (opens in a new tab)

10. CVE-2018-20506: Integer overflow

  • CVSS 8.1 High
  • Published 2019-04-03
  • CWE-190
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)

NVD record for CVE-2018-20506 (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.

SQLite release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
SQLite 3Sep 18, 2004Not announced3.54.1Supported
SQLite 2Sep 28, 2001Sep 18, 20042.8.17End of life
SQLite 1Aug 17, 2000Sep 28, 20011.0.32End 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

  1. Never expose the database port to the internet; allow only the application servers.
  2. Use strong, unique credentials and least-privilege accounts for each application.
  3. Apply minor and security releases on a regular cadence, after testing.
  4. Encrypt connections with TLS and encrypt backups.
  5. Restrict or remove admin tools you do not need.
  6. 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.

Few stacks run SQLite alone. These guides cover the technologies it is most often deployed with.

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

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.