{"id":"CVE-2026-120208","summary":"libheif 1.18.0 before 1.23.3 Heap Buffer Overflow via unci Mixed-Interleave Decoder","details":"libheif 1.18.0 before 1.23.3 contains a heap-based buffer overflow vulnerability in unc_decoder_mixed_interleave::processTile() that allows attackers to write out of bounds by supplying chroma components with unequal bit depths. Attackers can craft a HEIF file declaring, for example, 16-bit Cb and 8-bit Cr to trigger file-controlled heap writes past the Cr plane, potentially achieving code execution in image-processing pipelines.","aliases":["GHSA-x8r2-mggj-j6wr"],"modified":"2026-11-04T07:08:04.733541222Z","published":"2026-10-31T17:25:55.507Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-122"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120208.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120208.json"},{"type":"ADVISORY","url":"https://github.com/strukturag/libheif/releases/tag/v1.23.3"},{"type":"ADVISORY","url":"https://github.com/strukturag/libheif/security/advisories/GHSA-x8r2-mggj-j6wr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120208"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libheif-1.18.0-before-1.23.3-heap-buffer-overflow-via-unci-mixed-interleave-decoder"},{"type":"FIX","url":"https://github.com/strukturag/libheif/commit/9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9"},{"type":"PACKAGE","url":"https://github.com/strukturag/libheif"},{"type":"ARTICLE","url":"https://github.com/strukturag/libheif/blob/v1.23.2/libheif/codecs/uncompressed/unc_decoder_mixed_interleave.cc#L95"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/strukturag/libheif","events":[{"introduced":"537d66852629e23ca778ef717343be8f657c0e79"},{"fixed":"78c9746aea226b22885e8d35241353ce669c4ea5"},{"fixed":"9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"1.18.0"},{"fixed":"1.23.3"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9"}]},{"range":[{"fixed":"78c9746aea226b22885e8d35241353ce669c4ea5"}],"source":"REFERENCES_TAG","original_tag":"v1.23.3"}]}}],"versions":["v1.23.2","v1.23.1","v1.23.0","v1.22.2","v1.22.1","v1.22.0","v1.21.2","v1.21.1","v1.21.0","v1.20.1","v1.20.0","v1.19.5","v1.19.4","v1.19.3","v1.19.2","v1.19.1","v1.19.0","v1.18.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120208.json","vanir_signatures":[{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["42338673161338251055879719317913954818","97550183320129180487889257269895168459","144515284470444267707080235451063816845","177562107259878432849253196019479636772","324913526500530765343342821536642191991","117689301415417923300437793611450328224","139335372059719548168789819890703324086","265576587036143163340316708806196641375","331935120972531678558852243691310781525","310928363730776193218683496673284028991","153298377428846601043833273791883481290","321421486917965669402444913465057469705"]},"id":"CVE-2026-120208-5cfe7528","signature_type":"Line","signature_version":"v1","source":"https://github.com/strukturag/libheif/commit/9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9","target":{"file":"libheif/codecs/uncompressed/unc_decoder_mixed_interleave.cc"}},{"source":"https://github.com/strukturag/libheif/commit/9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9","target":{"function":"unc_decoder_legacybase::buildChannelListEntry","file":"libheif/codecs/uncompressed/unc_decoder_legacybase.cc"},"deprecated":false,"digest":{"function_hash":"300799455493702996245791717874748774249","length":1347},"id":"CVE-2026-120208-7bedbc62","signature_type":"Function","signature_version":"v1"},{"source":"https://github.com/strukturag/libheif/commit/9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9","target":{"file":"libheif/codecs/uncompressed/unc_decoder_legacybase.cc"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["68230107151106763631316005080255909548","58822924988595932708991159442062678286","292116420247440218234883134477281660983","199659740873244752697135485504517696125","242900380297214053740440469671626747693","72306288628794285660804614724403579099","168353132152522698048079555990910184015","283573704671063009867056525472160183687","228143508588952019379558569199391402417","69729385636156471776654728917714358618","292009478135122029557304886684778597839","201125808275137040078854100007447598828","269657580436349988074798934348402022427"]},"id":"CVE-2026-120208-d26efc46","signature_type":"Line","signature_version":"v1"},{"digest":{"function_hash":"137241522828671635195439240372356061782","length":1478},"id":"CVE-2026-120208-e63aa099","signature_type":"Function","signature_version":"v1","source":"https://github.com/strukturag/libheif/commit/9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9","target":{"function":"unc_decoder_mixed_interleave::processTile","file":"libheif/codecs/uncompressed/unc_decoder_mixed_interleave.cc"},"deprecated":false},{"target":{"file":"libheif/codecs/uncompressed/unc_decoder_legacybase.h"},"deprecated":false,"digest":{"line_hashes":["36120263472541461665400254718813866488","178139373510642597547995005010197531731","141290335773357109435028878728515402933","185581510638649258087936053794446341654","324140444007556306972704207611038438930","38041445296783997506610270264684886502","325428243220005690391707577941323274281","82818096548282398124634452787695834997","95143012552237087151029125717152816433"],"threshold":0.9},"id":"CVE-2026-120208-ed9f30f0","signature_type":"Line","signature_version":"v1","source":"https://github.com/strukturag/libheif/commit/9d3cd91d7b1c8c68deef6d06057ab956bcb0dfb9"}],"vanir_signatures_modified":"2026-11-04T07:08:04Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}