Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-107729 Overview
CVE-2026-107729 is an out-of-bounds read vulnerability [CWE-125] in SumatraPDF 3.7.0.22298, a multi-format document reader for Windows. The flaw resides in src/MobiDoc.cpp, where the parser narrows the untrusted unsigned mobiHdr.hdrLen field to a signed integer during validation. Values above INT_MAX become negative and bypass the upper-bound check. When the EXTH flag is set, the original unsigned value is reused as a pointer offset, causing DecodeExthHeader() to read beyond the record buffer. Opening a crafted MOBI file reliably terminates the application with a native access violation. No fixed version was available at the time of this review.
Critical Impact
A crafted MOBI file causes an access violation in SumatraPDF, producing a denial-of-service condition. No code execution, information disclosure, or integrity impact has been demonstrated.
Affected Products
- SumatraPDF 3.7.0.22298 (Windows)
- src/MobiDoc.cpp MOBI parsing component
- EXTH header decoding path in DecodeExthHeader()
Discovery Timeline
- 2026-10-08 - CVE-2026-107729 published to NVD
- 2026-10-09 - Last updated in NVD database
Technical Details for CVE-2026-107729
Vulnerability Analysis
The vulnerability is a classic signedness bug that leads to an out-of-bounds read. SumatraPDF parses the Mobipocket header from a PDB record and validates that the declared header length fits within the record buffer. The check casts the untrusted 32-bit unsigned hdrLen field to a signed int before comparison. Any value with the high bit set becomes a negative integer and silently passes the bounds check.
When the EXTH flag inside the Mobi header is set, the parser then uses the original unsigned hdrLen value as a byte offset to locate the EXTH structure. DecodeExthHeader() reads from this attacker-controlled offset far outside the record buffer, triggering an access violation and terminating the SumatraPDF process. The impact is limited to availability because the read is not reflected to the user or network.
Root Cause
The root cause is improper integer type handling during input validation. The guard expression kPalmDocHeaderLen + (int)mobiHdr.hdrLen > recSize performs the comparison in signed arithmetic. A hdrLen value of 0x80000000 or greater sign-extends into a negative number, bypassing the upper-bound check while the EXTH decoder still consumes the raw unsigned value.
Attack Vector
Exploitation requires an attacker to deliver a crafted MOBI file and convince a local user to open it in SumatraPDF. The attack is local with user interaction and does not require any privileges. Successful exploitation results in process termination.
// Security patch in src/MobiDoc.cpp
// Fix MOBI hdrLen out-of-bounds read in EXTH decoding
imagesCount = pdbReader->GetRecordCount() - imageFirstRec;
}
}
- if (kPalmDocHeaderLen + (int)mobiHdr.hdrLen > recSize) {
+ // compare unsigned: a hdrLen >= 0x80000000 would pass as a negative int
+ // and the EXTH header would be read far past the end of the record
+ if (mobiHdr.hdrLen > (u32)(recSize - kPalmDocHeaderLen)) {
logf("MobiHeader too big\n");
return false;
}
Source: SumatraPDF commit 1ef900c. The patch removes the signed cast and performs the length check in unsigned arithmetic, preventing values above INT_MAX from bypassing the guard.
Detection Methods for CVE-2026-107729
Indicators of Compromise
- Unexpected SumatraPDF process crashes with Windows Error Reporting entries citing an access violation (0xC0000005) in MobiDoc-related code paths.
- MOBI files sourced from untrusted email attachments, download portals, or shared drives that trigger immediate termination of SumatraPDF on open.
- Minidump artifacts in %LOCALAPPDATA%\CrashDumps\ referencing SumatraPDF.exe and DecodeExthHeader.
Detection Strategies
- Hunt for crash telemetry from SumatraPDF.exe across endpoints and correlate with recently opened .mobi files.
- Inspect MOBI files statically for a hdrLen field at the Mobi header offset with the high bit set (values >= 0x80000000).
- Review file-open and child-process telemetry linking browser or mail-client processes to SumatraPDF.exe instances that exited abnormally.
Monitoring Recommendations
- Collect Windows Application event log entries with event IDs 1000 and 1001 filtered to SumatraPDF.exe and forward to a centralized log store.
- Enable local crash dump collection via HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps for forensic review.
- Monitor file write events for .mobi extensions arriving from external sources and tag them for user awareness.
How to Mitigate CVE-2026-107729
Immediate Actions Required
- Treat MOBI files from untrusted sources as suspect and do not open them in SumatraPDF 3.7.0.22298 until a fixed build is available.
- Deploy the upstream source patch from commit 1ef900c for organizations that build SumatraPDF internally.
- Restrict association of the .mobi file extension on shared or kiosk systems where arbitrary attachments may be opened.
Patch Information
No fixed release version was available at the time of this review. The upstream fix is published in the SumatraPDF repository at commit 1ef900cbad02f06353b0a0747b098ca596f7c131 and tracked in GHSA-86hq-m6hv-67h2. Monitor the SumatraPDF release channel for a build that incorporates the corrected unsigned comparison.
Workarounds
- Use an alternative, patched e-book reader for MOBI documents until SumatraPDF ships a fixed release.
- Remove or rename the SumatraPDF file association for .mobi so that unexpected files do not auto-open in the vulnerable parser.
- Enforce content filtering at the email gateway to quarantine inbound MOBI attachments from untrusted senders.
# Remove .mobi file association for SumatraPDF (run as Administrator in PowerShell)
Remove-Item -Path 'HKCU:\Software\Classes\.mobi' -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path 'HKCU:\Software\Classes\SumatraPDF.mobi' -Recurse -ErrorAction SilentlyContinue
# Verify SumatraPDF version prior to opening any MOBI content
Get-ItemProperty 'C:\Program Files\SumatraPDF\SumatraPDF.exe' | Select-Object VersionInfo
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

