Heap Buffer Overflow Vulnerability in SQLite3 Package - CVE-2025-3277

sqlite3 Updated 14 Dec 2025

Summary

14/04/2025
N/A
Yes i
Medium
6.9

UBUNTU-CVE-2025-3277: An integer overflow can be triggered in SQLite’s concat_ws() function. Affects sqlite3 versions < 3.45.1-1ubuntu2.3. Fixed in 3.45.1-1ubuntu2.3. 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

SQLite3 is a widely used database engine that provides a lightweight, serverless, self-contained SQL database. It is commonly utilized in various applications for data storage and management due to its simplicity and efficiency. However, the SQLite3 package version 3.45.1-1ubuntu2.3 has been identified to contain a critical vulnerability that can lead to severe security risks.

Vulnerability Detail

The vulnerability arises from an integer overflow in SQLite's concat_ws() function. When this function is invoked, it can produce a truncated integer that is subsequently used to allocate a buffer. This leads to a wild Heap Buffer overflow of approximately 4GB when SQLite attempts to write the resulting string to the buffer using the original, untruncated size. This overflow can potentially allow an attacker to execute arbitrary code, posing a significant threat to system integrity and security.

How To Fix

Minimum fixed version

3.45.1-1ubuntu2.3

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 workaround, avoid using the concat_ws() function in SQLite until the package is updated. This can help mitigate the risk of triggering the vulnerability while waiting for the official patch.

Conclusion

The CVE-2025-3277 vulnerability in the SQLite3 package poses a significant risk due to its potential for heap buffer overflow and arbitrary code execution. It is crucial to update to the patched version to ensure system security. Utilize tools like Vulert to monitor for vulnerabilities in your applications effectively.

See every vulnerability recorded for sqlite3 →

Share this vulnerability

FAQ

CVE-2025-3277 is a vulnerability in the SQLite3 package that can lead to a heap buffer overflow, potentially allowing arbitrary code execution.

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

The risks include the potential for arbitrary code execution, which can compromise system security and integrity.

Yes, the patched version of the SQLite3 package is 3.45.1-1ubuntu2.3. Updating to this version will resolve the vulnerability.

If you cannot update immediately, refrain from using the concat_ws() function in SQLite as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for sqlite3.

How To Fix

Minimum fixed version

3.45.1-1ubuntu2.3

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