# GHSA-rmc9-8qp4-gjhx: Panic on chroma QP offsets enabled with an empty offset list

- Severity: Medium 6.5 (CVSS:3.1, scored by RustSec Advisory Database) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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-11-04T12:00:00.000Z
- Modified: 2026-11-09T10:15:02.433Z
- Also known as: RUSTSEC-2026-0460

## Description

An HEVC Range Extensions stream can set `cu_chroma_qp_offset_enabled_flag` in a
slice while its picture parameter set carries an empty chroma QP offset list.
The decoder then read the list at the signalled index, which panicked on the
out-of-range access. A panic aborts the decoding thread, or the whole process
when built with `panic = "abort"`. The crate forbids `unsafe` code, so there is
no memory corruption.

Any application that decodes untrusted HEIC files or HEVC streams with
`heifer-hevc-dec`, directly or through the `heifer` crate, is affected.

The flaw was corrected in 0.3.27 (commit
[`1a8426e`](https://github.com/HarpeLm/Heifer/commit/1a8426e1b41160fb48d8baf8be858238570a8093)):
with an empty list there is no offset to apply, and the offset is zero.

(As written by RustSec Advisory Database.)

## Affected

- heifer-hevc-dec (crates.io): from 0.0.0-0 before 0.3.27

## References

- <https://crates.io/crates/heifer-hevc-dec> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0460.html> (advisory)
- <https://github.com/HarpeLm/Heifer/commit/1a8426e1b41160fb48d8baf8be858238570a8093> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0460](https://rustsec.org/advisories/RUSTSEC-2026-0460.html), CC0-1.0, modified 2026-11-09

---

Page: https://cve.day/GHSA-rmc9-8qp4-gjhx · Whole record: https://cve.day/GHSA-rmc9-8qp4-gjhx.json · Rebuilt by cve.day 2026-11-25T22:56:43.473Z
