---
id: CVE-2026-52834
title: jxl-oxide is a pure Rust implementation of a JPEG XL decoder
summary: >-
  jxl-oxide is a pure Rust implementation of a JPEG XL decoder. Prior to
  jxl-grid 0.6.2, decoding a crafted JPEG XL image on a 32-bit platform can
  overflow length calculations in AlignedGrid::with_alloc_tracker and related
  grid and subgrid…
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H'
cwe:
  - CWE-122
  - CWE-131
  - CWE-190
vendor: jxl-grid
product: jxl-grid
affected:
  - jxl-grid <= 0.6.1
patched:
  - jxl-grid 0.6.2
published: '2026-08-19'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:09:01.757'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-52834'
references:
  - url: >-
      https://github.com/tirr-c/jxl-oxide/commit/3986dadd3926a95656a642e74a0702d52f5c92e2
    label: security-advisories@github.com
  - url: 'https://github.com/tirr-c/jxl-oxide/releases/tag/0.12.6'
    label: security-advisories@github.com
  - url: >-
      https://github.com/tirr-c/jxl-oxide/security/advisories/GHSA-5pmv-rx8r-wmv5
    label: security-advisories@github.com
  - url: 'https://rustsec.org/advisories/RUSTSEC-2026-0151.html'
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-5pmv-rx8r-wmv5'
tags:
  - nvd
  - ghsa
  - rust
epss: 0.0013
epssPercentile: 0.03036
ecosystem: rust
ingestedAt: '2026-07-02T21:44:45.098Z'
---

## Overview

jxl-oxide is a pure Rust implementation of a JPEG XL decoder. Prior to jxl-grid 0.6.2, decoding a crafted JPEG XL image on a 32-bit platform can overflow length calculations in AlignedGrid::with_alloc_tracker and related grid and subgrid arithmetic. A 65536 x 65536 frame can pass the frame-area limit while overflowing the usize element count, causing modular, VarDCT, or filter rendering paths to allocate a backing buffer smaller than the logical grid. A tiny bitstream-controlled cropped frame combined with a huge canvas or requested region can also reach the vulnerable composition path in crates/jxl-render/src/blend.rs through ordinary render_frame(). Later mutable subgrid and raw-pointer operations can then perform attacker-controlled out-of-bounds writes, causing memory corruption, denial of service, or arbitrary code execution. This issue is fixed in jxl-grid version 0.6.2.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-52834)

Affected packages:

- `jxl-grid <= 0.6.1`

Patched in:

- `jxl-grid 0.6.2`

Source: https://github.com/advisories/GHSA-5pmv-rx8r-wmv5
