
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-50813 is a buffer over-read (CWE-126) vulnerability in SQLite's Session Extension affecting the changeset concat/changegroup merge path. It allows a local attacker to obtain sensitive information and potentially cause a denial of service by processing a malformed changeset blob. The vulnerability affects SQLite 3.53.1 with the Session Extension enabled and all development trunk builds before Fossil check-in 869a51ae84df. It was published on July 8, 2026, and carries a CVSS v3.1 base score of 6.1 (Medium) (GitHub Advisory).
The root cause is an out-of-bounds read (CWE-126) in the sessionVarintGet() function within ext/session/sqlite3session.c. When the Session Extension's merge path processes a truncated high-bit TEXT varint in a malformed changeset blob, sqlite3GetVarint() reads beyond the caller-specified logical changeset boundary. The fix masks the parsed value with 0x7FFFFFFF and routes sessionVarintGetSafe() through the corrected sessionVarintGet(). Affected functions include sqlite3changeset_concat(), sqlite3changegroup_add(), sessionVarintGet(), sessionSerialLen(), sessionMergeValue(), sessionMergeUpdate(), and sessionChangeMerge(). A minimal 13-byte malformed changeset (540101740017000003ffffffff) is sufficient to trigger the read under ASan/UBSan, and a 16-byte PoC demonstrates that adjacent heap bytes (e.g., deadbeef) can appear in the output changeset (Researcher Gist, SQLite Commit).
Successful exploitation results in limited confidentiality impact — constrained adjacent heap bytes (demonstrated at up to four bytes in the published PoC) can be leaked into the output changeset — and high availability impact, as the malformed changeset can crash or corrupt processing in ASan/UBSan-instrumented builds. No out-of-bounds write, integrity impact, ASLR bypass, or code execution has been demonstrated. The scope is limited to the local system and the SQLite process handling the malformed data (Researcher Gist, GitHub Advisory).
SQLITE_ENABLE_SESSION) and processes externally supplied changeset blobs via sqlite3changeset_concat() or sqlite3changegroup_add().540101740017000003ffffffff. For output-disclosure, use a 16-byte logical changeset buffer with adjacent controlled bytes (e.g., deadbeef) placed immediately after the buffer boundary.sqlite3changeset_concat() or sqlite3changegroup_output() for adjacent heap bytes appended beyond the expected boundary (e.g., deadbeef suffix in the output). In ASan builds, the process will crash with a heap-buffer-overflow READ report.sqlite3changeset_concat, sqlite3changegroup_add, or sessionVarintGet in stack traces; ASan/UBSan reports of heap-buffer-overflow READ in ext/session/sqlite3session.c..changeset or binary blob files supplied to SQLite-backed applications; presence of the minimal PoC payload (540101740017000003ffffffff in hex) in application input files or network captures.Update SQLite to a version incorporating Fossil check-in 869a51ae84df or later, which corresponds to the fix in GitHub commit c597ed79d1bd03f57198d10d1f431adda293cf2e. The patch masks the varint value with 0x7FFFFFFF in sessionVarintGet() and routes sessionVarintGetSafe() through the corrected function. As a workaround where patching is not immediately possible, restrict local access to systems running vulnerable SQLite versions and avoid processing untrusted or externally supplied changeset blobs through the Session Extension (SQLite Commit, GitHub Advisory).
The vulnerability was discovered and reported by security researcher Junsu Han (junius-sec), who published a detailed technical gist including a minimal PoC and impact analysis. The GitHub Advisory Database rated it as Moderate severity. No significant broader media coverage or vendor statements beyond the patch commit have been identified (Researcher Gist, GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."