Advisory

GHSA-66m8-c62j-h6v5

Also known as: None

Summary

jxl-oxide: FrameBuffer::new creates out-of-bounds slices on overflow

Details

Summary
jxl-oxide exposes a public safe API that can construct an undersized FrameBuffer due to unchecked usize multiplication, which immediately trigger panic while initializing the buffer in normal decoding path.

Additionally, calling the safe grouped buffer accessors afterward can create invalid oversized slices from a much smaller allocation, causing undefined behavior; however normal decoding path never reaches UB, because these methods are never used within jxl-oxide.

Impact
On 32-bit platforms this can cause panic by accessing out-of-range indices, making it a DoS vulnerability.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-02 20:45 UTC
Modified
2026-07-02 21:00 UTC

Affected packages and fixes

jxl-oxide

crates.io · All systems

Affected

  • introduced 0, fixed 0.12.6 (semver)

Fixed versions

0.12.6

Fix

  • Fixed version 0.12.6
    cargo update -p jxl-oxide --precise 0.12.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences