Critical Use After Free Vulnerability in SQLite Package

sqlite Updated 02 Oct 2025

Summary

10/05/2019
N/A
Yes i
High
8.1

ALPINE-CVE-2019-5018: An exploitable use after free vulnerability exists in the window function functionality of Sqlite3 3.26.0. Affects sqlite versions < 3.28.0-r0. Fixed in 3.28.0-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 in applications. It is known for its simplicity, reliability, and cross-platform compatibility. However, certain versions of SQLite are vulnerable to a use after free vulnerability, which can lead to severe security risks, including remote code execution.

Vulnerability Detail

An exploitable use after free vulnerability exists in the window function functionality of SQLite 3.26.0. This vulnerability arises from improper memory management, allowing attackers to craft a malicious SQL command that can exploit the flaw. If successfully executed, this could lead to remote code execution, compromising the integrity and confidentiality of the affected system.

How To Fix

Minimum fixed version

3.28.0-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 measure, avoid using window functions in SQLite until the package is updated to the patched version. This can help mitigate the risk of exploitation while you prepare for the update.

Conclusion

The use after free vulnerability in SQLite poses significant risks to applications utilizing affected versions. It is crucial to update to the patched version to safeguard against potential exploitation. Implementing the suggested updates and workarounds will help maintain the security of your systems.

See every vulnerability recorded for sqlite →

Share this vulnerability

FAQ

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

SQLite versions prior to 3.28.0-r0 are affected by this vulnerability.

Yes, an attacker can exploit this vulnerability remotely by sending a specially crafted SQL command.

The potential consequences include remote code execution, which can lead to unauthorized access and control over the affected system.

You can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software. It requires only a manifest file like package-lock.json to function.

Related vulnerabilities

Recent vulnerabilities recorded for sqlite.

How To Fix

Minimum fixed version

3.28.0-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