Integer Overflow Vulnerability in SQLite Package - CVE-2020-13434

sqlite Updated 02 Oct 2025

Summary

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

ALPINE-CVE-2020-13434: SQLite through 3.32.0 has an integer overflow in sqlite3_str_vappendf in printf.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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

SQLite is a widely-used, lightweight, serverless SQL database engine that is embedded into applications. It is known for its simplicity and efficiency, making it a popular choice for mobile applications, web browsers, and other software. The vulnerability in question affects versions of SQLite up to 3.32.0, where an integer overflow can occur in the sqlite3_str_vappendf function, potentially leading to unexpected behavior or crashes.

Vulnerability Detail

The vulnerability, identified as CVE-2020-13434, originates from an integer overflow in the sqlite3_str_vappendf function within SQLite. This flaw can be exploited by attackers to manipulate the database engine's behavior, potentially leading to data corruption or application crashes. The technical aspect of this vulnerability lies in how the function handles string formatting, which can be exploited if the input exceeds expected limits. The CVSS score for this vulnerability is 5.5, indicating a moderate severity level.

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

If immediate updating is not feasible, consider implementing input validation to limit the size of strings passed to the sqlite3_str_vappendf function. This can help mitigate the risk of exploitation until the package can be updated.

Conclusion

The integer overflow vulnerability in SQLite (CVE-2020-13434) poses a risk to applications using affected versions of the package. It is crucial to update to the patched version (3.32.1-r0) to mitigate potential risks. Additionally, using input validation can help reduce the likelihood of exploitation until an update can be applied.

See every vulnerability recorded for sqlite →

Share this vulnerability

FAQ

CVE-2020-13434 is a vulnerability in SQLite that involves an integer overflow in the sqlite3_str_vappendf function, which can lead to application crashes or data corruption.

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

The CVSS score for this vulnerability is 5.5, indicating a moderate severity level.

Update the SQLite package to version 3.32.1-r0 using the command 'apk add sqlite=3.32.1-r0' in your Alpine Linux environment.

Implementing input validation to limit the size of strings passed to the sqlite3_str_vappendf function can serve as a temporary workaround.

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