{"id":"CVE-2026-129857","kind":"vulnerability","aliases":["CVE-2026-129857"],"related":[],"title":"jxrlib: crafted JPEG XR file overflows heap while decoding","description":"Microsoft jxrlib through 1.1 and the mircomir jxrlib fork before 1.3.1 contain a heap buffer overflow in ReadBinaryData() in jxrgluelib/JXRMeta.c caused by integer overflow of the metadata count. Attackers can supply a JPEG XR file with a count of 0xFFFFFFFE or 0xFFFFFFFF, wrapping PKAlloc(uCount + 2) to an undersized buffer that the following file read overflows, corrupting heap memory in decoding applications.","summary":"jxrlib is a library for decoding JPEG XR images, and a malformed file with a huge metadata count makes it allocate too little memory and then write past the buffer. An attacker who gets a crafted image into an application that decodes it can corrupt heap memory, which may allow code execution.","severity":"high","cvss":8.5,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["c","image-decoding","jpeg-xr","jxrlib","package"],"not_affected_if":["no-jxr-decoding","trusted-input-only"],"how_to_check":"- Check whether the project depends on jxrlib or the mircomir jxrlib fork, for example with `grep -ri jxrlib` across manifests and vendored source\n- Confirm which version is in use; the sources do not give a version check command","fix":"- Microsoft jxrlib: unknown (sources do not state a fixed version)\n- mircomir jxrlib fork: `1.3.1`","status":"open","published_at":"2026-11-16T15:17:23+00:00","first_seen_at":"2026-11-16T15:37:52+00:00","triaged_at":"2026-11-16T15:40:13+00:00","updated_at":"2026-11-16T15:40:13+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T15:40:13Z","model":"claude-haiku-5-5","output":{"fix":"- Microsoft jxrlib: unknown (sources do not state a fixed version)\n- mircomir jxrlib fork: `1.3.1`","reach":"internet","title":"jxrlib: crafted JPEG XR file overflows heap while decoding","impact":"high","summary":"jxrlib is a library for decoding JPEG XR images, and a malformed file with a huge metadata count makes it allocate too little memory and then write past the buffer. An attacker who gets a crafted image into an application that decodes it can corrupt heap memory, which may allow code execution.","audience":"developers","category":"package","nicknames":[],"who_cares":["jxrlib","jpeg-xr","c","image-decoding"],"confidence":0.6,"fix_status":"available","needs_auth":"no","worst_case":"heap corruption in decoding app, possibly code execution","analyst_note":"Confirm the fixed version for Microsoft jxrlib from the patch link at github.com and the vulncheck advisory; the sources only state a fix for the mircomir fork.","how_to_check":"- Check whether the project depends on jxrlib or the mircomir jxrlib fork, for example with `grep -ri jxrlib` across manifests and vendored source\n- Confirm which version is in use; the sources do not give a version check command","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-jxr-decoding","trusted-input-only"],"who_is_affected":"Applications that decode JPEG XR images with Microsoft jxrlib through 1.1 or the mircomir fork before 1.3.1 are exposed, especially when they accept images from untrusted users. Projects that do not link jxrlib, or that only handle other image formats, can skip it.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000781,"input_tokens":4682,"output_tokens":625,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-129857':12A,15A '-2026':11A,14A '0xfffffffe':116C '0xffffffff':118C '1.1':80C '1.3.1':87C '2':122C 'alloc':45B 'allow':74B 'applic':64B,138C 'attack':56B,105C 'buffer':54B,91C,126C 'c':16B 'caus':97C 'code':75B 'contain':88C 'corrupt':69B,133C 'count':42B,104C,114C 'craft':2A,60B 'cve':10A,13A 'decod':9A,19B,30B,66B,137C 'execut':76B 'file':5A,37B,111C,130C 'follow':129C 'fork':85C 'get':58B 'heap':7A,70B,90C,134C 'huge':40B 'imag':18B,33B,61B 'image-decod':17B 'integ':99C 'jpeg':3A,21B,31B,109C 'jpeg-xr':20B 'jxrgluelib/jxrmeta.c':96C 'jxrlib':1A,23B,25B,78C,84C 'librari':28B 'littl':47B 'make':43B 'malform':36B 'may':73B 'memori':48B,71B,135C 'metadata':41B,103C 'microsoft':77C 'mircomir':83C 'overflow':6A,92C,100C,132C 'packag':24B 'past':52B 'pkalloc':120C 'read':131C 'readbinarydata':94C 'suppli':107C 'ucount':121C 'unders':125C 'wrap':119C 'write':51B 'xr':4A,22B,32B,110C","nicknames":[],"mitigations":[],"who_affected":"Applications that decode JPEG XR images with Microsoft jxrlib through 1.1 or the mircomir fork before 1.3.1 are exposed, especially when they accept images from untrusted users. Projects that do not link jxrlib, or that only handle other image formats, can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["c","high","imagedecoding","jpegxr","jxrlib","package"],"campaign_type":null,"search_a":"'-129857':12A,15A '-2026':11A,14A 'craft':2A 'cve':10A,13A 'decod':9A 'file':5A 'heap':7A 'jpeg':3A 'jxrlib':1A 'overflow':6A 'xr':4A","search_b":"'alloc':45B 'allow':74B 'applic':64B 'attack':56B 'buffer':54B 'c':16B 'code':75B 'corrupt':69B 'count':42B 'craft':60B 'decod':19B,30B,66B 'execut':76B 'file':37B 'get':58B 'heap':70B 'huge':40B 'imag':18B,33B,61B 'image-decod':17B 'jpeg':21B,31B 'jpeg-xr':20B 'jxrlib':23B,25B 'librari':28B 'littl':47B 'make':43B 'malform':36B 'may':73B 'memori':48B,71B 'metadata':41B 'packag':24B 'past':52B 'write':51B 'xr':22B,32B","search_c":"'0xfffffffe':116C '0xffffffff':118C '1.1':80C '1.3.1':87C '2':122C 'applic':138C 'attack':105C 'buffer':91C,126C 'caus':97C 'contain':88C 'corrupt':133C 'count':104C,114C 'decod':137C 'file':111C,130C 'follow':129C 'fork':85C 'heap':90C,134C 'integ':99C 'jpeg':109C 'jxrgluelib/jxrmeta.c':96C 'jxrlib':78C,84C 'memori':135C 'metadata':103C 'microsoft':77C 'mircomir':83C 'overflow':92C,100C,132C 'pkalloc':120C 'read':131C 'readbinarydata':94C 'suppli':107C 'ucount':121C 'unders':125C 'wrap':119C 'xr':110C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T15:17:23+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129857","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129857","severity":null,"published_at":"2026-11-16T15:17:23+00:00","modified_at":"2026-11-16T15:17:23+00:00","first_seen_at":"2026-11-16T15:37:52+00:00","fetched_at":"2026-11-16T15:37:52+00:00","note":null}],"documents":[{"id":170562,"url":"https://github.com/mircomir/jxrlib/commit/cb97e6debb5019cfa774f314c230629da05fc746","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170563,"url":"https://www.vulncheck.com/advisories/microsoft-jxrlib-through-1.1-heap-buffer-overflow-via-readbinarydata-integer-overflow","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}