Skip to main content

jxl-oxide EUVDEUVD-2026-62513

| CVE-2026-52834 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-07-02 https://github.com/tirr-c/jxl-oxide GHSA-5pmv-rx8r-wmv5
7.3
CVSS 3.1 · Vendor: https://github.com/tirr-c/jxl-oxide
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft JPEG XL with overflowing canvas/frame area
  2. Delivery
    Deliver image to 32-bit decoder
  3. Exploit
    render_frame allocates undersized AlignedGrid
  4. Execution
    Integer overflow in width×height wraps
  5. Persist
    Write through subgrid past buffer
  6. Impact
    Heap 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

jxl-oxide < 0.12.6
jxl-grid < 0.6.2

Affected Packages

cargo jxl-grid fix: 0.6.2
euvd jxl_oxide fix: 0.12.6

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

Vendor (https://github.com/tirr-c/jxl-oxide) PRIMARY 7.3 HIGH
AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:H
vuln.today AI 7.4 HIGH

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).

3.1 AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.3 HIGH

Primary rating from Vendor (https://github.com/tirr-c/jxl-oxide).

CVSS VectorVendor: https://github.com/tirr-c/jxl-oxide

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
High

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:

rust
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:

  1. 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.

  1. 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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 18 cargo packages depend on jxl-grid (8 direct, 10 indirect)

Ecosystem-wide dependent count for version 0.6.2.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche pure-Rust JPEG XL decoder, 32-bit-only reachability
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy