Skip to content

Update bundled libheif to 1.23.7 - #223

Merged
danoli3 merged 2 commits into
masterfrom
deps/libheif-1.23.7
Oct 27, 2026
Merged

danoli3 merged 2 commits into
masterfrom
deps/libheif-1.23.7

Conversation

@danoli3

@danoli3 danoli3 commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

libheif 1.23.7 is an upstream security and bugfix release. It is ABI- and API-compatible with 1.23.6 and is a drop-in replacement.

Fourteen of the fixes are rated high, among them:

  • AV1/AVC coded-size check bypasses
  • a heap use-after-free in parallel grid-tile decoding (1.23.6 only)
  • CPU-exhaustion limits on derived images, hidden coded pictures, repeated transformations and stsc lookups

Release notes: https://github.com/strukturag/libheif/releases/tag/v1.23.7

Changes:

  • Source/ThirdParty/libheif-1.23.6.tar.gz replaced with libheif-1.23.7.tar.gz. SHA-256 f7483e818503ea6224c8863e4a56ac02c7089021a98472c811c12aa19faf2475 matches the digest GitHub publishes for the release asset.
  • sources.json and cmake/FreeImageBundledCodecs.cmake now point to the new archive and digest.
  • Updated README.md, Source/ThirdParty/README.md, THIRD_PARTY_VERSIONS.md, CHANGELOG.md and debian/changelog.

Verified: -DBUILD_LIBHEIF=ON -DUSE_SYSTEM_LIBHEIF=OFF Release build with the bundled codecs, ctest 13/13 on macOS arm64.

This PR and the LibRaw 0.22.3 PR edit the same paragraph in THIRD_PARTY_VERSIONS.md. Whichever merges second needs a one-line conflict resolved.

CVEs / advisories fixed

Upstream has not assigned CVE IDs yet: the release notes list them as CVE-2026-XXXXX, and all 16 GitHub advisories still show no CVE. The advisories are listed by GHSA ID below, split by whether FreeImage's bundled build can reach them. That build is libde265 + kvazaar + libaom; OpenH264, x264/x265, gdk-pixbuf, the apps/tools and the uncompressed codec are all off. PluginHEIF.cpp only opens files, decodes the primary image and thumbnails, and calls heif_context_encode_image.

Reachable when loading untrusted HEIF/AVIF files

Advisory Severity Issue
GHSA-35mc-3887-rr37 high Heap use-after-free when derived grid tiles are decoded in parallel. Only 1.23.6 is affected, which is the version currently bundled on master.
GHSA-jx54-6rm6-2cgj high AV1 OBU framing mismatch bypasses the coded-size limit with libaom (AVIF, when FREEIMAGE_BUNDLE_AOM=ON, the default)
GHSA-fpr5-xpfr-vcq3 high AV1 long UVLC bypasses the coded-size limit with libaom (same condition)
GHSA-48p4-gj45-w9v6 high CPU exhaustion from derived images that repeatedly decode a large image
GHSA-2g6j-vhr6-6wrj high CPU exhaustion from many hidden coded pictures in one item
GHSA-7qm8-hj35-269r high CPU exhaustion from repeated irot/imir/clap transformations
GHSA-hhg3-fxg7-3gxw high CPU exhaustion on open from many colr associations
GHSA-74mj-m37q-h3q9 high Quadratic stsc lookup on open of files with a moov box, also when only the still image is read
GHSA-rcqc-842v-m26h high Deadlock on skipped grid tiles with parallel, non-strict decoding

Also in the hardening list: the libde265 plugin now refuses NAL units of 2 GB or more, and a missing first grid tile no longer dereferences NULL in the chroma bit-depth query.

Fixed upstream, but not reachable from FreeImage's bundled build

Advisory Severity Why not reachable
GHSA-xwcv-cp39-m2w4 high OpenH264 decoder is disabled (WITH_OpenH264_DECODER=OFF)
GHSA-hpg4-g2gc-pq42 high x264/x265 sequence encoders are disabled
GHSA-9rpf-2x22-78m9 high FreeImage never calls heif_context_encode_thumbnail()
GHSA-73j7-gvm9-x8q6 high FreeImage does not use the sequence/track decode API
GHSA-pfcm-ffqg-84hx high heifio helper of the command-line tools; tools are not built
GHSA-gff5-3vgr-p8h2 medium gdk-pixbuf loader is disabled
GHSA-r9cg-w542-g7hj low heif-dec/heif-info only

Builds using USE_SYSTEM_LIBHEIF=ON get whatever the system package provides and need their distro's 1.23.7 update instead.

1.23.7 is an upstream security and bugfix release, ABI- and
API-compatible with 1.23.6. Fourteen fixes are rated high, among them
AV1/AVC coded-size check bypasses, a heap use-after-free in parallel
grid-tile decoding (1.23.6 only), and CPU-exhaustion limits on derived
images, hidden coded pictures, repeated transformations and stsc
lookups.

The archive's SHA-256 matches the digest GitHub publishes for the
v1.23.7 release asset.

https://github.com/strukturag/libheif/releases/tag/v1.23.7
@danoli3
danoli3 merged commit 7a187c8 into master Oct 27, 2026
56 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant