---
id: "CVE-2024-58407"
page: "https://infrastack.ai/live/CVE-2024-58407"
kind: "vulnerability"
aliases: ["CVE-2024-58407"]
title: "jxrlib: crafted JPEG XR file over-reads memory during decoding"
severity: "medium"
cvss: 6.9
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["c", "image-decoding", "jpeg-xr", "jxrlib", "package"]
not_affected_if: ["no-jpeg-xr-decoding", "trusted-input-only"]
published_at: "2026-11-16T15:17:05+00:00"
first_seen_at: "2026-11-16T15:37:51+00:00"
updated_at: "2026-11-16T15:40:38+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58407", "first_seen_at": "2026-11-16T15:37:51+00:00"}]
exploit_sources: []
---

# jxrlib: crafted JPEG XR file over-reads memory during decoding

Link for people: https://infrastack.ai/live/CVE-2024-58407 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Look for jxrlib in your dependencies, for example `grep -ri jxrlib` in the project tree or the vendored code.
- Check whether the fork in use is mircomir/jxrlib and its version; versions before `1.3.1` are affected.
- Check whether the decoder processes untrusted JPEG XR files.

## Fix

- mircomir jxrlib fork: `1.3.1` (fixed version named in the sources)
- Microsoft jxrlib: unknown

## Timeline

- 2026-11-16T15:37:51+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-58407

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/microsoft-jxrlib-through-1.1-global-buffer-over-read-via-decodesignificantrun
- [fix] Patch: github.com https://github.com/mircomir/jxrlib/commit/debe47a27c1ae37626fae9b8369db93e47d0aa19

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
