
Proof-of-concept for CVE-2026-100204, a use-after-free in msheif_store.dll's HEIF/AVIF metadata rewrite path that enables indirect call hijack and code execution on Windows.
CVE-2026-100204
Use-after-free in the Microsoft HEIF/AVIF metadata rewrite path
(msheif_store.dll, reached via PhotoMetadataHandler!CPhotoPropertyStore::Commit)
drives an attacker-influenced indirect call. This repo demonstrates full code
execution: the corrupted call passes Control Flow Guard and lands in a
CFG-registered beacon, which drops a proof file and launches a URL via cmd.exe.
Note: the corrupted bytes are planted with a debugger to simulate attacker-controlled freed memory (standard exploitability-demonstration practice). There is no debugger-free heap reclaim here.
PhotoMetadataHandler 10.0.29648.1000msheif_store.dll 10.0.29640.1000)poc/crash_seed.heic trigger file (fully valid image, animated+audio container shape)
poc/crash_seed.avif byte-identical copy under the .avif extension
repro/ps_trigger.ps1 COM trigger: Initialize(RW) -> SetValue(CameraModel) -> Commit
demo/beacon.c CFG-instrumented beacon DLL source (/guard:cf)
demo/build_beacon.cmd builds beacon.dll (fixed base 0x180000000, needs VS BuildTools)
demo/fullchain.cmd runs the trigger under cdb, plants the fake object, continues
cdb.exe on PATH (WinDbg / Windows SDK Debugging Tools)build_beacon.cmd)REM 1. build the CFG-instrumented beacon
call demo\build_beacon.cmd
REM 2. run the full chain (defaults to poc\crash_seed.heic)
call demo\fullchain.cmd
REM with an explicit seed:
call demo\fullchain.cmd C:\path\to\crash_seed.heic
Expected on a vulnerable build: %USERPROFILE%\Desktop\pwned.txt appears and the
URL opens in the browser. The raw debugger log goes to fullchain.txt.
poc/crash_seed.heic to a working folder.explorer.exe terminates with heap corruption (0xC0000374,
Event ID 1000, faulting module msheif_store.dll per the stack). Explorer
auto-restarts.Notes:
crash_seed.heic — do not
reuse the rewritten file..avif is included (poc/crash_seed.avif); the .heic extension is
what exposes the Details-tab editor. Both files are byte-identical
(MD5 0b8c40bfd72339aa48e189571f3f8f58).Austin Mannchen, discoverer of the vuln.
William Ryan Hanna, PoC idea.