MEDIUM · CVSS 3.1 6.5

GHSA-rcff-5x58-7w2p: Panic on an HEVC tile layout that does not match the active SPS

Published 2026-11-04 · Updated 2026-11-09 · Also known as RUSTSEC-2026-0456

Summary

A panic vulnerability exists in the heifer-hevc-dec crate when parsing a crafted HEVC stream with a mismatched tile layout and SPS. Engineering teams handling untrusted HEIC files or HEVC streams should update their dependencies.

Who is affected

Applications using heifer-hevc-dec or the heifer crate to decode untrusted HEIC files or HEVC streams are affected when processing a crafted stream that redefines the SPS. Because Rust bounds checks turn indexing past coding tree block tables into a panic, this can abort the decoding thread or the entire process if built with panic = 'abort'. The crate forbids unsafe code, meaning there is no memory corruption.

Exploitability

The vulnerability has a CVSS base score of 6.5 (Medium) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H, indicating it can be exploited over the network with low complexity requiring user interaction, resulting in high availability impact with no confidentiality or integrity impact. EPSS is not yet available, and CISA KEV lists active exploitation as no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
crates.io heifer-hevc-dec >= 0.0.0-0, < 0.3.27 0.3.27 cargo update -p heifer-hevc-dec --precise 0.3.27

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

FAQ

Does this vulnerability lead to memory corruption?

No, the crate forbids unsafe code, and Rust's bounds checks convert the out-of-bounds indexing into a panic instead of memory corruption.

What is the consequence of the panic?

A panic will abort the decoding thread, or the whole process if built with panic = 'abort'.

What version fixes the issue?

The flaw was corrected in heifer-hevc-dec version 0.3.27.

Original advisory description
An HEVC picture parameter set (PPS) stores explicit tile column widths and row heights computed against the sequence parameter set (SPS) active when it was parsed. A crafted stream can redefine that SPS afterwards, so that the tile sizes add up to more than the picture. The decoder then indexed past its coding tree block tables: Rust's bounds checks turned this into a panic, or the picture was decoded wrongly. 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 [`71dfc67`](https://github.com/HarpeLm/Heifer/commit/71dfc67f1e3ae3c4b7e4cf633e83a26c94b06a92)): a tile layout that does not match the picture size is rejected with `Error::Invalid` at decode time.

References

Source records: RUSTSEC-2026-0456 (OSV.dev).