# GHSA-66m8-c62j-h6v5: jxl-oxide: `FrameBuffer::new` creates out-of-bounds slices on overflow

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-07-02T20:45:10.000Z
- Modified: 2026-07-02T21:00:16.924Z
- Weaknesses: CWE-131, CWE-190

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- jxl-oxide (crates.io): before 0.12.6

## References

- <https://github.com/tirr-c/jxl-oxide/security/advisories/GHSA-66m8-c62j-h6v5> (web)
- <https://github.com/tirr-c/jxl-oxide> (package)

## Sources

- GitHub Advisory Database: [GHSA-66m8-c62j-h6v5](https://github.com/advisories/GHSA-66m8-c62j-h6v5), CC-BY-4.0, modified 2026-07-02

---

Page: https://cve.day/GHSA-66m8-c62j-h6v5 · Whole record: https://cve.day/GHSA-66m8-c62j-h6v5.json · Rebuilt by cve.day 2026-11-25T22:56:42.278Z
