Advisory

RUSTSEC-2026-0460

Also known as: GHSA-rmc9-8qp4-gjhx

Summary

Panic on chroma QP offsets enabled with an empty offset list

Details

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`):
with an empty list there is no offset to apply, and the offset is zero.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Dates

Published
2026-11-04 12:00 UTC
Modified
2026-11-09 10:15 UTC

Affected packages and fixes

heifer-hevc-dec

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.27 (semver)

Fixed versions

0.3.27

Fix

  • Fixed version 0.3.27
    cargo update -p heifer-hevc-dec --precise 0.3.27

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: RustSec Advisory Database · CC0-1.0

Sources & licences