Exploit chain for CVE-2026-112611, a CoreGraphics PDF ShadingType 5 OOB write, using a Python PoC PDF generator and C harness for iOS userland RCE primitives.
This repository contains an advanced exploit chain targeting iOS (tested on iOS 26.4.0 / newjail). What started as a simple Out-of-Bounds (OOB) write in CoreGraphics has been evolved into a highly reliable, controlled memory corruption primitive. By combining a PDF ShadingType 5 vulnerability with direct-call primitives in H9.videoencoder, we demonstrate a path toward Userland RCE.
/N and /C0 parameters in PDF ShadingType 5.We have moved far beyond a simple denial-of-service. The Python PoC generates the malicious PDF, while the C-code harness orchestrates a complex memory layout strategy:
sigsetjmp/siglongjmp with SA_SIGINFO to catch SIGSEGV/SIGBUS during CoreGraphics execution. This allows the process to survive the corrupted internal state of the PDF parser and continue the exploit chain.mach_vm_allocate with VM_FLAGS_FIXED and a multi-candidate brute-force approach to map a 256MB RWX (Read-Write-Execute) landing zone at 0x136000000. This bypasses the OS allocator's randomization and ensures the OOB write lands in our controlled memory.0x136b3c5538) are deterministic and repeatable.H9.videoencoder using _dyld_get_image_header.H9 functions (like ST_RPS_Retrieve) directly with crafted RPSData structures, achieving a controlled half-word read/write primitive.0x136000000.SIGKILL).This code is provided for educational and security research purposes only. Do not use against devices you do not own.