{"id":"CVE-2024-58407","kind":"vulnerability","aliases":["CVE-2024-58407"],"related":[],"title":"jxrlib: crafted JPEG XR file over-reads memory during decoding","description":"Microsoft jxrlib through 1.1 and the mircomir jxrlib fork before 1.3.1 contain a global buffer over-read vulnerability in DecodeSignificantRun() in image/decode/segdec.c due to an unchecked run length. Attackers can supply a crafted JPEG XR file with an out-of-range iMaxRun value that indexes gSignificantRunBin[] out of bounds, causing memory disclosure or crashes during decoding.","summary":"Microsoft jxrlib through 1.1 and the mircomir fork before 1.3.1 read past a global array when decoding a crafted JPEG XR image. An attacker can leak memory contents or crash the decoder.","severity":"medium","cvss":6.9,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["c","image-decoding","jpeg-xr","jxrlib","package"],"not_affected_if":["no-jpeg-xr-decoding","trusted-input-only"],"how_to_check":"- Look for jxrlib in your dependencies, for example `grep -ri jxrlib` in the project tree or the vendored code.\n- Check whether the fork in use is mircomir/jxrlib and its version; versions before `1.3.1` are affected.\n- Check whether the decoder processes untrusted JPEG XR files.","fix":"- mircomir jxrlib fork: `1.3.1` (fixed version named in the sources)\n- Microsoft jxrlib: unknown","status":"open","published_at":"2026-11-16T15:17:05+00:00","first_seen_at":"2026-11-16T15:37:51+00:00","triaged_at":"2026-11-16T15:40:38+00:00","updated_at":"2026-11-16T15:40:38+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T15:40:38Z","model":"claude-haiku-5-5","output":{"fix":"- mircomir jxrlib fork: `1.3.1` (fixed version named in the sources)\n- Microsoft jxrlib: unknown","reach":"unknown","title":"jxrlib: crafted JPEG XR file over-reads memory during decoding","impact":"medium","summary":"Microsoft jxrlib through 1.1 and the mircomir fork before 1.3.1 read past a global array when decoding a crafted JPEG XR image. An attacker can leak memory contents or crash the decoder.","audience":"developers","category":"package","nicknames":[],"who_cares":["jxrlib","jpeg-xr","image-decoding","c"],"confidence":0.6,"fix_status":"available","needs_auth":"no","worst_case":"memory contents leaked or the decoding process crashes","analyst_note":"Check whether Microsoft's upstream jxrlib has a fix or remains unpatched through 1.1, using the linked patch and vulncheck advisory.","how_to_check":"- Look for jxrlib in your dependencies, for example `grep -ri jxrlib` in the project tree or the vendored code.\n- Check whether the fork in use is mircomir/jxrlib and its version; versions before `1.3.1` are affected.\n- Check whether the decoder processes untrusted JPEG XR files.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-jpeg-xr-decoding","trusted-input-only"],"who_is_affected":"Applications that decode JPEG XR (.jxr, .wdp, .hdp) images using jxrlib, especially those that accept files from users or the internet. Projects that do not decode JPEG XR, or that only handle trusted images, are less exposed. The sources do not say whether Microsoft's upstream release has a fix.","user_interaction":"unknown","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000791,"input_tokens":4653,"output_tokens":652,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2024':13A,16A '-58407':14A,17A '1.1':30B,62C '1.3.1':36B,69C 'array':41B 'attack':50B,88C 'bound':109C 'buffer':73C 'c':18B 'caus':110C 'contain':70C 'content':54B 'craft':2A,45B,92C 'crash':56B,114C 'cve':12A,15A 'decod':11A,21B,43B,58B,116C 'decodesignificantrun':79C 'disclosur':112C 'due':82C 'file':5A,95C 'fork':34B,67C 'global':40B,72C 'gsignificantrunbin':106C 'imag':20B,48B 'image-decod':19B 'image/decode/segdec.c':81C 'imaxrun':102C 'index':105C 'jpeg':3A,23B,46B,93C 'jpeg-xr':22B 'jxrlib':1A,25B,28B,60C,66C 'leak':52B 'length':87C 'memori':9A,53B,111C 'microsoft':27B,59C 'mircomir':33B,65C 'out-of-rang':98C 'over-read':6A,74C 'packag':26B 'past':38B 'rang':101C 'read':8A,37B,76C 'run':86C 'suppli':90C 'uncheck':85C 'valu':103C 'vulner':77C 'xr':4A,24B,47B,94C","nicknames":[],"mitigations":[],"who_affected":"Applications that decode JPEG XR (.jxr, .wdp, .hdp) images using jxrlib, especially those that accept files from users or the internet. Projects that do not decode JPEG XR, or that only handle trusted images, are less exposed. The sources do not say whether Microsoft's upstream release has a fix.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["c","imagedecoding","jpegxr","jxrlib","medium","package"],"campaign_type":null,"search_a":"'-2024':13A,16A '-58407':14A,17A 'craft':2A 'cve':12A,15A 'decod':11A 'file':5A 'jpeg':3A 'jxrlib':1A 'memori':9A 'over-read':6A 'read':8A 'xr':4A","search_b":"'1.1':30B '1.3.1':36B 'array':41B 'attack':50B 'c':18B 'content':54B 'craft':45B 'crash':56B 'decod':21B,43B,58B 'fork':34B 'global':40B 'imag':20B,48B 'image-decod':19B 'jpeg':23B,46B 'jpeg-xr':22B 'jxrlib':25B,28B 'leak':52B 'memori':53B 'microsoft':27B 'mircomir':33B 'packag':26B 'past':38B 'read':37B 'xr':24B,47B","search_c":"'1.1':62C '1.3.1':69C 'attack':88C 'bound':109C 'buffer':73C 'caus':110C 'contain':70C 'craft':92C 'crash':114C 'decod':116C 'decodesignificantrun':79C 'disclosur':112C 'due':82C 'file':95C 'fork':67C 'global':72C 'gsignificantrunbin':106C 'image/decode/segdec.c':81C 'imaxrun':102C 'index':105C 'jpeg':93C 'jxrlib':60C,66C 'length':87C 'memori':111C 'microsoft':59C 'mircomir':65C 'out-of-rang':98C 'over-read':74C 'rang':101C 'read':76C 'run':86C 'suppli':90C 'uncheck':85C 'valu':103C 'vulner':77C 'xr':94C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T15:17:05+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/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-2024-58407","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58407","severity":null,"published_at":"2026-11-16T15:17:05+00:00","modified_at":"2026-11-16T15:17:06+00:00","first_seen_at":"2026-11-16T15:37:51+00:00","fetched_at":"2026-11-16T15:37:51+00:00","note":null}],"documents":[{"id":170534,"url":"https://github.com/mircomir/jxrlib/commit/debe47a27c1ae37626fae9b8369db93e47d0aa19","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170535,"url":"https://www.vulncheck.com/advisories/microsoft-jxrlib-through-1.1-global-buffer-over-read-via-decodesignificantrun","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"}