CVE-2025-7458
SQLite vulnerability analysis and mitigation

Overview

An integer overflow vulnerability (CVE-2025-7458) was discovered in SQLite versions 3.39.2 through 3.41.1. The vulnerability exists in the sqlite3KeyInfoFromExprList function and was disclosed on July 29, 2025 (NVD).

Technical details

The vulnerability is an integer overflow condition in the sqlite3KeyInfoFromExprList function. It occurs when processing SELECT statements with a large number of expressions in the ORDER BY clause. The issue has been assigned a CVSS v3.1 base score of 9.1 CRITICAL and CVSS v4.0 score of 6.9 MEDIUM (NVD, Snyk).

Impact

When successfully exploited, this vulnerability can lead to denial of service conditions or disclosure of sensitive information from process memory. The attacker must have the ability to execute arbitrary SQL statements to exploit this vulnerability (NVD).

Exploitability

The vulnerability requires an attacker to have the ability to execute arbitrary SQL statements. Exploitation is achieved by crafting a SELECT statement with a large number of expressions in the ORDER BY clause (NVD).

Mitigation and workarounds

A fix has been implemented in SQLite that correctly handles SELECT DISTINCT ... ORDER BY statements when all result set terms are constant and there are more result set terms than ORDER BY terms (SQLite Patch). Users should upgrade to a version newer than 3.41.1 to address this vulnerability.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

sqlite3

Affected

sid

sqlite3: 3.42.0-1

Fixed

trixie

sqlite3: 3.42.0-1

Fixed

Ubuntu

Unknown

bionic (esm-apps)

sqlite

Unknown

bionic (esm-infra)

sqlite3

Not Affected

devel

sqlite3

Not Affected

focal (esm-apps)

sqlite

Unknown

focal (esm-infra)

sqlite3

Not Affected

jammy

sqlite

Unknown

jammy (esm-apps)

sqlite

Unknown

noble

sqlite3

Not Affected

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

firefox.src

Affected

RHEL 9

firefox.src

Affected

RHEL 10

sqlite.src

Affected

SourceThis report was generated using AI

Related SQLite vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-39113MEDIUM4
  • SQLite logoSQLite
  • sqlite3
NoYesAug 25, 2026
CVE-2026-51295NONEN/A
  • SQLite logoSQLite
  • sqlite
NoNoJul 30, 2026
CVE-2026-51294NONEN/A
  • SQLite logoSQLite
  • sqlite3
NoNoJul 30, 2026
CVE-2026-51293NONEN/A
  • SQLite logoSQLite
  • sqlite
NoNoJul 30, 2026
CVE-2026-51292NONEN/A
  • SQLite logoSQLite
  • sqlite
NoNoJul 30, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management