CVE-2025-7458
Critical · 9.1CVSS
9.1
EPSS
0.4%
Published
Jul 29, 2025
CISA due date
—
Cloudanix analysis
A flaw in database software used by many applications can let someone who runs certain commands crash the system or steal private data from memory.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in sqlite3KeyInfoFromExprList triggers memory corruption, enabling denial of service or arbitrary sensitive information disclosure from process memory when processing a crafted SELECT with an excessively large ORDER BY expression list.
Why it matters to the business
Applications relying on the affected database components on AlmaLinux 8 can experience service outages or memory data leaks if an attacker gains SQL execution access; the broad package footprint increases exposure surface across many dependent systems.
How an attack unfolds
An attacker who can issue arbitrary SQL submits a SELECT statement engineered with a very large number of expressions in the ORDER BY clause, causing the integer overflow during key info construction and resulting in either a crash or leakage of adjacent process memory.
How to fix it
Upgrade the listed AlmaLinux 8 packages to the exact fixed module versions provided (for example xml-commons-apis to 1.4.01-25.module_el8.5.0+2577+9e95fe00, slf4j to 1.7.25-4.module_el8.5.0+2577+9e95fe00, and similarly for all other affected packages).
How to confirm the fix worked
Confirm installed package versions match the fixed module releases, review application query patterns for oversized ORDER BY clauses, and re-test the vulnerable code path with controlled large expression lists after patching.
Typical attack path
- Gain the ability to execute arbitrary SQL statements against the target database
- Construct a malicious SELECT query containing an abnormally large ORDER BY expression list
- Submit the query to trigger the integer overflow in sqlite3KeyInfoFromExprList
- Observe denial of service or harvest sensitive information leaked from process memory
How to detect it
Inspect database query logs and application SQL audit trails for SELECT statements containing an abnormally high number of expressions in the ORDER BY clause; correlate with process crashes or unexpected memory access patterns.
What your security team should do
- Apply the listed fixed package versions immediately across all AlmaLinux 8 systems
- Restrict arbitrary SQL execution privileges to the minimum required accounts
- Add monitoring for unusually large ORDER BY clauses in database and application logs
- Review downstream dependents to identify additional impacted deployments
The record
An integer overflow in the sqlite3KeyInfoFromExprList function in SQLite versions 3.39.2 through 3.41.1 allows an attacker with the ability to execute arbitrary SQL statements to cause a denial of service or disclose sensitive information from process memory via a crafted SELECT statement with a large number of expressions in the ORDER BY clause.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | sqlite | 3.39.2 | 3.41.2 |
| Debian:11 | sqlite3 | 0 | No fix |
| Debian:12 | sqlite3 | 0 | No fix |
| Debian:13 | sqlite3 | 0 | 3.42.0-1 |
| Debian:14 | sqlite3 | 0 | 3.42.0-1 |
Related vulnerabilities
- CVE-2025-6965 There exists a vulnerability in SQLite versions before 3.50.2 where the number of… Also affects sqlite
- CVE-2025-3277 An integer overflow can be triggered in SQLite’s `concat_ws()` function. Also affects sqlite
- CVE-2025-29088 An issue in sqlite v.3.49.0 allows an attacker to cause a denial of service via the… Also affects sqlite
- CVE-2025-29087 Sqlite 3.49.0 is susceptible to integer overflow through the concat function. Also affects sqlite
- CVE-2024-0232 A heap use-after-free issue has been identified in SQLite in the jsonParseAddNodeArray()… Also affects sqlite
- CVE-2022-46908 SQLite through 3.40.0, when relying on --safe for execution of an untrusted CLI script… Also affects sqlite
- CVE-2020-35525 In SQlite 3.31.1, a potential null pointer derreference was found in the INTERSEC query… Also affects sqlite
- CVE-2022-35737 SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if… Also affects sqlite