{"id":"CVE-2024-58408","kind":"vulnerability","aliases":["CVE-2024-58408"],"related":[],"title":"jxrlib: crafted JPEG XR file triggers out-of-bounds memory read","description":"Microsoft jxrlib through 1.1 and the mircomir jxrlib fork before 1.3.1 contain a global buffer over-read vulnerability in initLookupTables() in image/decode/strdec.c caused by an unchecked bit depth index. Attackers can supply a crafted JPEG XR file with an out-of-range bit depth in the image header to read beyond the cbChannels array, causing crashes or memory disclosure.","summary":"jxrlib is a library for decoding JPEG XR images. A crafted JPEG XR file with an out-of-range bit depth in its header makes the decoder read past a global array, which can crash the process or disclose memory.","severity":"medium","cvss":6.9,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["c","image-decoding","jxrlib","package"],"not_affected_if":["no-jpeg-xr-decoding","trusted-input-only"],"how_to_check":"- Check whether the project depends on jxrlib or the mircomir jxrlib fork, for example by searching lockfiles and build files for `jxrlib`.\n- Check whether the decoder is fed untrusted JPEG XR images.","fix":"- mircomir jxrlib fork: `1.3.1` (fixed version named in the description; upstream Microsoft jxrlib has no fixed release listed)","status":"open","published_at":"2026-11-16T15:17:06+00:00","first_seen_at":"2026-11-16T15:37:51+00:00","triaged_at":"2026-11-16T15:40:36+00:00","updated_at":"2026-11-16T15:40:36+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T15:40:36Z","model":"claude-haiku-5-5","output":{"fix":"- mircomir jxrlib fork: `1.3.1` (fixed version named in the description; upstream Microsoft jxrlib has no fixed release listed)","reach":"unknown","title":"jxrlib: crafted JPEG XR file triggers out-of-bounds memory read","impact":"medium","summary":"jxrlib is a library for decoding JPEG XR images. A crafted JPEG XR file with an out-of-range bit depth in its header makes the decoder read past a global array, which can crash the process or disclose memory.","audience":"developers","category":"package","nicknames":[],"who_cares":["jxrlib","image-decoding","c"],"confidence":0.6,"fix_status":"available","needs_auth":"no","worst_case":"Process crashes or memory contents leak from a decoding service","analyst_note":"Confirm whether Microsoft's upstream jxrlib has any fixed release; the sources only name the mircomir fork's 1.3.1 fix.","how_to_check":"- Check whether the project depends on jxrlib or the mircomir jxrlib fork, for example by searching lockfiles and build files for `jxrlib`.\n- Check whether the decoder is fed untrusted JPEG XR images.","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) images with jxrlib, especially those accepting images uploaded or supplied by users. Systems that only process trusted images or do not use jxrlib can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"medium"},"cost_usd":0.000756,"input_tokens":4642,"output_tokens":584,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-2024':14A,17A '-58408':15A,18A '1.1':69C '1.3.1':76C 'array':57B,121C 'attack':96C 'beyond':118C 'bit':45B,93C,110C 'bound':10A 'buffer':80C 'c':19B 'caus':89C,122C 'cbchannel':120C 'contain':77C 'craft':2A,35B,100C 'crash':60B,123C 'cve':13A,16A 'decod':22B,30B,52B 'depth':46B,94C,111C 'disclos':64B 'disclosur':126C 'file':5A,38B,103C 'fork':74C 'global':56B,79C 'header':49B,115C 'imag':21B,33B,114C 'image-decod':20B 'image/decode/strdec.c':88C 'index':95C 'initlookupt':86C 'jpeg':3A,31B,36B,101C 'jxrlib':1A,23B,25B,67C,73C 'librari':28B 'make':50B 'memori':11A,65B,125C 'microsoft':66C 'mircomir':72C 'out-of-bound':7A 'out-of-rang':41B,106C 'over-read':81C 'packag':24B 'past':54B 'process':62B 'rang':44B,109C 'read':12A,53B,83C,117C 'suppli':98C 'trigger':6A 'uncheck':92C 'vulner':84C 'xr':4A,32B,37B,102C","nicknames":[],"mitigations":[],"who_affected":"Applications that decode JPEG XR (.jxr, .wdp) images with jxrlib, especially those accepting images uploaded or supplied by users. Systems that only process trusted images or do not use jxrlib can skip it.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["c","imagedecoding","jxrlib","medium","package"],"campaign_type":null,"search_a":"'-2024':14A,17A '-58408':15A,18A 'bound':10A 'craft':2A 'cve':13A,16A 'file':5A 'jpeg':3A 'jxrlib':1A 'memori':11A 'out-of-bound':7A 'read':12A 'trigger':6A 'xr':4A","search_b":"'array':57B 'bit':45B 'c':19B 'craft':35B 'crash':60B 'decod':22B,30B,52B 'depth':46B 'disclos':64B 'file':38B 'global':56B 'header':49B 'imag':21B,33B 'image-decod':20B 'jpeg':31B,36B 'jxrlib':23B,25B 'librari':28B 'make':50B 'memori':65B 'out-of-rang':41B 'packag':24B 'past':54B 'process':62B 'rang':44B 'read':53B 'xr':32B,37B","search_c":"'1.1':69C '1.3.1':76C 'array':121C 'attack':96C 'beyond':118C 'bit':93C,110C 'buffer':80C 'caus':89C,122C 'cbchannel':120C 'contain':77C 'craft':100C 'crash':123C 'depth':94C,111C 'disclosur':126C 'file':103C 'fork':74C 'global':79C 'header':115C 'imag':114C 'image/decode/strdec.c':88C 'index':95C 'initlookupt':86C 'jpeg':101C 'jxrlib':67C,73C 'memori':125C 'microsoft':66C 'mircomir':72C 'out-of-rang':106C 'over-read':81C 'rang':109C 'read':83C,117C 'suppli':98C 'uncheck':92C 'vulner':84C 'xr':102C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T15:17:06+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-58408","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58408","severity":null,"published_at":"2026-11-16T15:17:06+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":170536,"url":"https://github.com/mircomir/jxrlib/commit/ba86c041febb1472551681bae0d59a62e2e42072","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":170537,"url":"https://www.vulncheck.com/advisories/microsoft-jxrlib-through-1.1-global-buffer-over-read-via-initlookuptables","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"}