Segmentation Fault Vulnerability in SQLite Package - CVE-2020-13435

sqlite Updated 02 Oct 2025

Summary

24/05/2020
N/A
Yes i
Medium
5.5

ALPINE-CVE-2020-13435: SQLite through 3.32.0 has a segmentation fault in sqlite3ExprCodeTarget in expr.c. Affects sqlite versions < 3.32.1-r0. Fixed in 3.32.1-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

SQLite is a widely-used, lightweight, serverless database engine that is embedded in applications. It is known for its simplicity, reliability, and cross-platform capabilities. The SQLite package is integral for applications requiring a relational database without the overhead of a separate server process. However, certain versions of SQLite are vulnerable to a segmentation fault, which can lead to application crashes and potential data loss.

Vulnerability Detail

The vulnerability identified as CVE-2020-13435 affects SQLite versions up to 3.32.0. It originates from a segmentation fault in the sqlite3ExprCodeTarget function within the expr.c file. This flaw can be exploited by attackers to cause a denial of service through application crashes, potentially leading to data corruption or loss. The technical aspect of this vulnerability lies in the mishandling of expressions, which can trigger unexpected behavior during execution.

How To Fix

Minimum fixed version

3.32.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade sqlite

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using features that trigger the vulnerable function until the package can be updated. However, this is not a permanent solution and updating the package is strongly recommended.

Conclusion

The CVE-2020-13435 vulnerability in SQLite poses a significant risk to applications using affected versions. It is crucial to update to the patched version to mitigate potential crashes and data loss. Users are encouraged to utilize tools like Vulert to monitor for vulnerabilities in their applications.

See every vulnerability recorded for sqlite →

Share this vulnerability

FAQ

CVE-2020-13435 is a vulnerability in SQLite that can lead to a segmentation fault, causing application crashes.

SQLite versions up to 3.32.0 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

The CVSS score for CVE-2020-13435 is 5.5, indicating a moderate severity level.

If you cannot update the package, avoid using features that may trigger the vulnerability and monitor for updates.

Related vulnerabilities

Recent vulnerabilities recorded for sqlite.

How To Fix

Minimum fixed version

3.32.1-r0

This is the first release that contains the fix.

sudo apk add --upgrade sqlite

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback