Critical Heap-Based Buffer Overflow in SQLite Package

sqlite Updated 02 Oct 2025

Summary

29/12/2023
N/A
Yes i
High
7.3

ALPINE-CVE-2023-7104: A vulnerability was found in SQLite SQLite3 up to 3.43.0 and classified as critical. Affects sqlite versions < 3.40.1-r1. Fixed in 3.40.1-r1. 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 Penetration testing for web, API and mobile 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 database engine that provides a self-contained, high-reliability, and full-featured SQL database engine. It is commonly embedded in applications for local data storage. The SQLite package is crucial for applications that require a robust database solution without the overhead of a full database server. However, recent vulnerabilities have raised concerns regarding its security, particularly in the context of session management.

Vulnerability Detail

A critical vulnerability has been identified in SQLite versions up to 3.43.0, specifically in the sessionReadRecord function located in the ext/session/sqlite3session.c file. This vulnerability can lead to a heap-based buffer overflow, which may allow an attacker to execute arbitrary code, potentially compromising the integrity and confidentiality of the affected system. The vulnerability is classified under CVE-2023-7104 and has a CVSS score of 7.3, indicating a high severity level.

How To Fix

Minimum fixed version

3.40.1-r1

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 the affected session management features of SQLite until the package is updated. This may involve modifying application logic to bypass session handling or using alternative methods for data storage.

Conclusion

In summary, the critical vulnerability identified in SQLite poses significant risks to applications relying on this database engine. It is crucial for users to update to the patched versions as soon as possible to mitigate potential threats. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for sqlite →

Share this vulnerability

FAQ

CVE-2023-7104 is a critical vulnerability in SQLite that can lead to a heap-based buffer overflow, potentially allowing attackers to execute arbitrary code.

SQLite versions up to 3.43.0 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

The CVSS score of this vulnerability is 7.3, indicating a high severity level.

If immediate updates are not possible, consider implementing workarounds such as avoiding the use of affected features until a patch is applied.

Related vulnerabilities

Recent vulnerabilities recorded for sqlite.

How To Fix

Minimum fixed version

3.40.1-r1

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