SQLite Temporary Directory Vulnerability - CVE-2016-6153

sqlite3 Updated 03 Oct 2025

Summary

26/09/2016
N/A
Yes i
Medium
5.9

UBUNTU-CVE-2016-6153: os_unix.c in SQLite before 3.13.0 improperly implements the temporary directory search algorithm, which might allow local users to obtain sensitive information, cause a denial of service (application crash), or have unsp... Affects sqlite3 versions < 3.8.2-1ubuntu2.2+esm1. Fixed in 3.8.2-1ubuntu2.2+esm1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

SQLite is a widely-used, lightweight, serverless SQL database engine that is embedded in applications. It is known for its simplicity and efficiency, making it a popular choice for developers. However, certain versions of SQLite are vulnerable to a flaw in the temporary directory search algorithm, which can lead to security issues.

Vulnerability Detail

The vulnerability identified as CVE-2016-6153 exists in the os_unix.c file of SQLite versions prior to 3.13.0. It improperly implements the temporary directory search algorithm, potentially allowing local users to access sensitive information, cause application crashes, or exploit other unspecified impacts by leveraging the current working directory for temporary files. This vulnerability has a CVSS score of 5.9, indicating a moderate level of risk.

How To Fix

Minimum fixed version

3.8.2-1ubuntu2.2+esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade sqlite3

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

Workaround

As a temporary measure, users can avoid using the current working directory for temporary files. Instead, specify a secure, dedicated temporary directory in the application configuration to mitigate the risk until the package is updated.

Conclusion

CVE-2016-6153 is a significant vulnerability in SQLite that can lead to serious security issues if not addressed. Users are encouraged to update their SQLite packages to the latest patched versions to mitigate risks. Additionally, utilizing tools like Vulert can help monitor for vulnerabilities in real-time.

See every vulnerability recorded for sqlite3 →

Share this vulnerability

FAQ

CVE-2016-6153 is a vulnerability in SQLite that affects its temporary directory search algorithm, potentially leading to sensitive information exposure or application crashes.

SQLite versions prior to 3.13.0 are affected by this vulnerability.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file, you can check for vulnerabilities without needing to install any software.

If an immediate update is not possible, consider using a secure temporary directory for your application to reduce the risk of exploitation.

More information can be found in the official Ubuntu security notices and the CVE database.

Related vulnerabilities

Recent vulnerabilities recorded for sqlite3.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

3.8.2-1ubuntu2.2+esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade sqlite3

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