Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft JPEG XL with overflowing canvas/frame area
-
DeliveryDeliver image to 32-bit decoder
-
Exploitrender_frame allocates undersized AlignedGrid
-
ExecutionInteger overflow in width×height wraps
-
PersistWrite through subgrid past buffer
-
ImpactHeap corruption, potential code execution
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the vulnerable code to run on a 32-bit platform (32-bit usize) - this is the hard prerequisite and the primary limiting factor, as 64-bit builds cannot trigger the overflow. The attacker must supply a crafted JPEG XL image whose logical area overflows 32-bit usize, achieved either via a genuinely huge frame (e.g. 65536×65536, which passes the 2^40 frame-area check) or, more practically, a tiny bitstream-cropped frame combined with a huge canvas/default requested region so composition in jxl-render/src/blend.rs allocates an overflowing output grid during ordinary render_frame(). No authentication is required (PR:N) and no explicit user interaction is encoded in the vector (UI:N), but successful exploitation is gated by the high complexity (AC:H) of arranging the overflow and by the 32-bit-only reachability. |
| Impact | The provided CVSS 3.1 vector (AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H, base 7.3) captures the key nuance: no authentication (PR:N) but high attack complexity (AC:H) because exploitation is strictly conditional on a 32-bit target and on triggering the specific integer-overflow arithmetic - on mainstream 64-bit systems the product does not overflow and the bug is not reachable. Publicly available PoC test code exists (demonstrating the UB/OOB via miri and AddressSanitizer), but this is a crash/UB proof, not a weaponized RCE, and there is no CISA KEV listing and no EPSS value in the input to gauge exploitation likelihood. This is a real memory-safety defect worth patching, but its practical priority is bounded: 64-bit deployments are unaffected, and the arbitrary-code-execution outcome is asserted by the reporter rather than demonstrated. Note a signal tension worth verifying: the vector uses AV:L and S:C, yet a decoder that processes remotely supplied images could be argued AV:N - confirm the intended delivery/threat model with the vendor advisory. |
| Exploit ScenarioDerived | An attacker crafts a JPEG XL file that declares a huge canvas/requested region (or a huge frame such as 65536×65536) while carrying a tiny cropped frame payload, then delivers it to a 32-bit application that decodes it via render_frame(). The integer-overflow-induced undersized allocation is written past its bounds during composition, corrupting the heap with attacker-influenced data and potentially achieving code execution. PoC tests demonstrating the out-of-bounds write under miri and AddressSanitizer are published in the advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 02, 2026
Heap out-of-bounds writes in jxl-oxide's jxl-grid crate allow attacker-controlled memory corruption on 32-bit platforms when decoding a crafted JPEG XL image, potentially leading to arbitrary code execution. An integer overflow in AlignedGrid's width×height length calculation produces an undersized backing buffer for huge logical dimensions, after which rendering writes through mutable subgrids beyond the allocation. Publicly available exploit code exists in the advisory (miri/ASan PoC tests); no active exploitation is reported (not in CISA KEV) and no EPSS score was provided.
RemediationAI
Upgrade jxl-grid (and the parent jxl-oxide) to the patched release identified in the vendor advisory; no exact fix version is included in the provided data, so determine the fixed version from RUSTSEC-2026-0151 (https://rustsec.org/advisories/RUSTSEC-2026-0151.html) and GHSA-5pmv-rx8r-wmv5 (https://github.com/tirr-c/jxl-oxide/security/advisories/GHSA-5pmv-rx8r-wmv5), then run cargo update -p jxl-grid and rebuild. As the most effective compensating control until patched, avoid running the decoder on 32-bit targets - building and deploying only 64-bit binaries removes reachability entirely, at the cost of dropping 32-bit platform support. Where 32-bit builds are unavoidable, decode only trusted images or enforce strict upstream limits on image/canvas/requested-region dimensions so that width×height cannot exceed 32-bit usize (reject frames and canvases whose area approaches 2^32), accepting that this rejects some legitimately large images; isolating the decoder in a sandboxed, low-privilege process further limits the blast radius of any OOB write.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in cargo, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
jxl-oxide is a pure-Rust JPEG XL image decoder; the flaw lives in its jxl-grid crate (pkg:rust/jxl-grid), which provides the AlignedGrid buffer abstraction used across modular, VarDCT, filter, and blend/composition rendering paths. The root cause is CWE-122 (heap-based buffer overflow) driven by an unchecked integer overflow: AlignedGrid::with_alloc_tracker computes width * height without overflow checking, so on 32-bit targets (usize = 32 bits) a product exceeding 2^32 wraps to a small value, allocating a tiny heap buffer while the logical grid reports huge dimensions. Two decode paths reach this: a genuinely huge frame (e.g. 65536×65536, which passes the 2^40 frame-area limit but overflows 32-bit usize element count), and the more practical 'small payload, huge logical output' case where a tiny bitstream-cropped frame is composited onto a huge canvas/requested region in jxl-render/src/blend.rs, allocating the output grid to the overflowing ROI area during ordinary render_frame().
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H
Crafted image must be decoded (AV:L) on a 32-bit target with overflow-triggering dimensions (AC:H); no auth (PR:N); attacker-controlled heap OOB write plausibly yields code execution within the process (S:U, C/I/A:H).
Primary rating from Vendor (https://github.com/tirr-c/jxl-oxide).
CVSS VectorVendor: https://github.com/tirr-c/jxl-oxide
DescriptionCVE.org
Summary
On 32-bit platforms, decoding a crafted image may lead to out-of-bounds writes due to integer overflow in length calculation.
Details & PoC
The test listed below fail under miri with command cargo +nightly miri test --release -p jxl-grid
Or you can use Address Sanitizer, which ignores Rust-specific UB like aliasing but still flags out-of-bounds accesses:
RUSTFLAGS=-Zsanitizer=address cargo +nightly test -Zbuild-std -p jxl-grid --release --target x86_64-unknown-linux-gnu
The following tests should be appended to crates/jxl-grid/src/test/subgrids.rs:
mod miri_ub {
use super::*;
// `AlignedGrid::with_alloc_tracker` computes `width * height` unchecked. In release, overflow
// can create a tiny backing buffer for huge logical dimensions.
#[test]
fn aligned_grid_dimension_product_overflows() {
let width = usize::MAX / 2 + 1;
let mut grid = AlignedGrid::<u8>::with_alloc_tracker(width, 2, None).unwrap();
let mut subgrid = grid.as_subgrid_mut();
*subgrid.get_mut(0, 1) = 1;
std::hint::black_box(grid);
}
}This issue can be reachable through decoding a crafted image in two ways:
- Huge actual frame
A frame such as 65536 x 65536 passes the current frame area limit (2^32 <= 2^40) but overflows usize element count on 32-bit. Rendering then allocates too-small AlignedGrids in modular/VarDCT/filter paths and later writes through mutable subgrids.
- Huge canvas plus tiny cropped frame
This is the more practical “small payload, huge logical output” case. A bitstream-controlled frame crop can be tiny, but if the canvas/default requested region is huge, composition can allocate an output grid sized to the canvas/ROI at crates/jxl-render/src/blend.rs. That is bitstream frame cropping, not API crop. With a 32-bit target and a full requested image region whose area overflows, this can happen through ordinary render_frame().
Impact
On 32-bit platforms this can cause out-of-bounds writes with attacker-controlled data when decoding a crafted JPEG XL image. This could allow arbitrary code execution.
Blast Radius
ecosystem impact- 18 cargo packages depend on jxl-grid (8 direct, 10 indirect)
Ecosystem-wide dependent count for version 0.6.2.
Executive ViewAI
A memory corruption vulnerability in jxl-oxide's JPEG XL image decoder impacts 32-bit systems processing image files, enabling potential arbitrary code execution through a crafted image. While publicly available exploit code exists, no active exploitation is currently reported. No patch is available from the vendor, making immediate protective measures critical for organizations relying on this library.
No vendor-released patch identified at time of analysis. Interim mitigations: disable JPEG XL image processing on 32-bit systems if possible, block .jxl file uploads at ingestion points, restrict image processing to trusted internal sources, isolate affected systems from sensitive networks, enforce strict validation of image file sources, and plan migration to alternative image processing libraries or 64-bit platforms.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-62513
GHSA-5pmv-rx8r-wmv5
NVD
CVE.org
EPSS
Exploit-DB