<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Sqlar - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/sqlar/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 21 Aug 2026 12:36:14 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/sqlar/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Heap Buffer Overflow in SQLite SQLAR Extension (CVE-2026-39113)</title><link>https://feed.craftedsignal.io/briefs/2026-08-sqlite-sqlar-overflow/</link><pubDate>Fri, 21 Aug 2026 12:36:14 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-sqlite-sqlar-overflow/</guid><description>A heap buffer overflow in the SQLite SQLAR extension (CVE-2026-39113) occurs when an attacker triggers sqlar_uncompress with a 64-bit size value that gets truncated during memory allocation, leading to heap corruption and potential denial of service.</description><content:encoded><![CDATA[<p>CVE-2026-39113 is a memory-safety vulnerability in the optional SQLAR extension (<code>ext/misc/sqlar.c</code>) of the SQLite library. The issue stems from a type-mismatch introduced in a March 2026 commit, where a 64-bit size value (<code>sz</code>) is retrieved using <code>sqlite3_value_int64()</code> but passed to <code>sqlite3_malloc()</code> (which expects a 32-bit <code>int</code> on many platforms) for buffer allocation. Meanwhile, the zlib <code>uncompress()</code> function retains the full 64-bit size, causing the library to allocate an insufficient buffer and perform an out-of-bounds heap write during decompression.</p>
<p>The vulnerability affects custom builds and source snapshots derived from the Git commit <code>169f68e</code> (2026-03-11) through the parent of <code>34e139d</code> (2026-04-01). Official releases 3.52.0 (pre-introduction) and 3.53.0 (contains the fix) are not affected. While researchers demonstrated heap corruption leading to process termination (denial of service), arbitrary code execution was not achieved. The flaw is only reachable in applications that explicitly load the SQLAR extension and permit untrusted input to the <code>sqlar_uncompress()</code> SQL function.</p>
<h2 id="impact">Impact</h2>
<p>The impact of this vulnerability is primarily focused on denial of service via process crashes. Because the flaw occurs within the host process memory space, exploitation results in immediate heap corruption detected by AddressSanitizer or standard memory management handlers. While theoretical primitives for heap exploitation exist, no remote code execution chain was demonstrated. Organizations utilizing custom-built SQLite binaries or development snapshots between March and April 2026 are at risk if they enable the SQLAR extension in internet-facing or multi-tenant applications.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Identify all custom-built SQLite binaries and source snapshots within the development environment to determine if they fall within the vulnerable commit range.</li>
<li>Upgrade any affected custom builds to the official SQLite 3.53.0 release or later, which utilizes <code>sqlite3_malloc64()</code> to resolve the allocation-width mismatch.</li>
<li>Audit applications that load the <code>sqlar.c</code> extension and implement strict input validation for the <code>SZ</code> argument in <code>sqlar_uncompress()</code> to ensure it does not exceed reasonable bounds.</li>
<li>If the SQLAR extension is not business-critical, disable it in the application configuration to remove the attack vector entirely.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>sqlite</category><category>sqlar</category><category>heap-buffer-overflow</category><category>denial-of-service</category></item></channel></rss>