Skip to main content

SQLite EUVDEUVD-2026-66176

| CVE-2026-39113 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-08-25 cve@mitre.org GHSA-g4fp-96fc-xc72
4.0
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted .sqlar database with oversized entry
  2. Delivery
    Application calls sqlar_uncompress() on attacker-controlled entry
  3. Exploit
    sqlite3_value_int() truncates 64-bit size to 32-bit
  4. Execution
    sqlite3_malloc() allocates undersized heap buffer
  5. Persist
    zlib uncompress() overflows heap buffer
  6. Impact
    Application crash (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the target SQLite build must include the optional SQLAR extension (ext/misc/sqlar.c), which is omitted from most default distribution builds and must be explicitly compiled in or dynamically loaded; (2) the application must invoke the sqlar_uncompress() SQL function on a data source the attacker can influence - typically by supplying or substituting a crafted SQLite archive file; and (3) the decompressed-size argument passed to sqlar_uncompress() must encode a value exceeding 2,147,483,647 to trigger the 32-bit truncation. The CVSS PR:N vector indicates no database-level authentication is required once these deployment conditions are satisfied. Impact is strictly limited to process termination (denial of service); no confidentiality or integrity compromise is demonstrated. Applications that neither compile nor load the SQLAR extension, and those that validate the size argument before calling sqlar_uncompress(), are fully protected without a patch.

Impact

CVSS 3.1 scores this Medium (4.0) with a local attack vector (AV:L), low complexity (AC:L), no privileges required (PR:N), and only low availability impact (A:L) - no confidentiality or integrity exposure. These metrics are consistent with the description: an attacker must supply a crafted SQLite archive file to a locally running application, and impact is limited to process termination. EPSS at 0.28% (20th percentile) confirms low automated exploitation probability, appropriate for a niche optional extension. Absence from CISA KEV confirms no verified active exploitation. A third-party GitHub repository (https://github.com/20000419/CVE-2026-39113) suggests a proof-of-concept may be publicly accessible, but POC availability is a distinct signal from active exploitation and does not escalate the risk tier here. The dominant real-world risk limiter is that the SQLAR extension is not compiled into default SQLite builds distributed with Linux, Android, or most language bindings - applications must explicitly include ext/misc/sqlar.c, making the effective exposed population a small fraction of the overall SQLite install base.

Exploit ScenarioDerived

An attacker crafts a malicious SQLite archive (.sqlar) database file containing an entry whose declared decompressed size field exceeds 2,147,483,647 (INT32_MAX). When a vulnerable application opens this file and calls sqlar_uncompress() on the entry - for example, an archiving tool or backup utility that uses the SQLAR format - sqlite3_value_int() silently truncates the size, causing sqlite3_malloc() to allocate a heap buffer of potentially just a few bytes, after which zlib's uncompress() overflows it and crashes the process. A third-party repository at https://github.com/20000419/CVE-2026-39113 appears to demonstrate this scenario, though its contents and reliability have not been independently verified.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 31, 2026

Denial-of-service via heap buffer overflow in SQLite's optional SQLAR extension affects any application that compiles or loads ext/misc/sqlar.c and processes attacker-controlled archive entries. The root cause is an integer-width mismatch in sqlarUncompressFunc(): a 64-bit decompressed-size argument is silently truncated to 32 bits by sqlite3_value_int(), causing sqlite3_malloc() to allocate an undersized heap buffer before zlib's uncompress() writes the full payload into it (CWE-122). The vulnerability is absent from CISA KEV, EPSS stands at 0.28% (20th percentile), the upstream fix is confirmed at Git commit 169f68ed, and a third-party GitHub repository referencing the CVE suggests proof-of-concept code is publicly accessible.

RemediationAI

Upgrade to a SQLite source snapshot at or after Fossil check-in 8bdc0d485e3ad0c7a1e818da66f106951d496b05cbe61d12c2c448f2f24b6d5d (Git commit 169f68ed88b34cb68f720191c64c058f2ccec508, dated 2026-03-11), which replaces sqlite3_value_int() with sqlite3_value_int64() in sqlarUncompressFunc(). An exact stable release version tag incorporating this fix has not been independently confirmed from available data; monitor https://www.sqlite.org/ for the next numbered release. As an immediate compensating control where patching is not feasible, exclude ext/misc/sqlar.c from SQLite build configurations - this eliminates the sqlar_uncompress() SQL function entirely and removes all exposure with no impact on core SQLite functionality, though SQLite Archive support will be unavailable. Applications that do not compile or load the SQLAR extension are fully unaffected regardless of their SQLite version.

Affected VersionsENISA

n/a n/a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

SQLite's SQLAR (SQLite Archive) extension (ext/misc/sqlar.c) implements a zlib-compressed file archive within a SQLite database, similar in concept to ZIP. The vulnerable SQL function sqlar_uncompress(data, sz) reads the declared uncompressed size via sqlite3_value_int(argv[1]), which returns a signed 32-bit C int. Values exceeding 2,147,483,647 (INT32_MAX) are silently truncated before being passed to sqlite3_malloc(int) - itself accepting a 32-bit int - resulting in a heap allocation far smaller than the actual payload. The subsequent call to zlib's uncompress() then writes the full uncompressed bytes into this undersized buffer, constituting a CWE-122 heap-based buffer overflow. The fix (Fossil check-in 8bdc0d / Git 169f68ed, 2026-03-11) replaces sqlite3_value_int() with sqlite3_value_int64() to preserve full 64-bit precision. The same commit also widens nPayload from u32 to u64 in src/btree.c and szPayload from u32 to u64 in src/json.c, indicating broader integer-width hardening across the SQLite codebase rather than a surgical single-function fix.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 4.0 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 4.0 MEDIUM

Local attack via crafted archive file; no database auth needed; impact is availability only via process crash, no C or I exposure.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 5.0 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

2
CVSS changed
Aug 31, 2026 - 16:22 NVD
4.0 (MEDIUM)
CVE Published
Aug 25, 2026 - 21:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Buffer Overflow vulnerability in SQLite affected version source snapshots/builds containing Fossil check-in 8bdc0d485e3ad0c7a1e818da66f106951d496b05cbe61d12c2c448f2f24b6d5d (Git mirror 169f68ed88b34cb68f720191c64c058f2ccec508, 2026-03-11) and later snapshots/builds allows an attacker to cause a denial of service via the ext/misc/sqlar.c, sqlarUncompressFunc(), sqlar_uncompress(), sqlite3_value_int64(), sqlite3_malloc(int), uncompress() components

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Low
optional SQLite extension, excluded from most default builds
Social Media
6
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy