{"id":"CVE-2026-142504","summary":"libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read","details":"libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes, mixed-depth grid tiles, or iovl overlays to crash applications or disclose memory.","aliases":["GHSA-vv35-6hxg-95x8"],"modified":"2026-12-02T19:00:12.461142264Z","published":"2026-12-02T17:42:23.352Z","database_specific":{"cwe_ids":["CWE-1284"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142504.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142504.json"},{"type":"PACKAGE","url":"https://github.com/strukturag/libheif"},{"type":"ARTICLE","url":"https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L590"},{"type":"FIX","url":"https://github.com/strukturag/libheif/commit/64a5bba75ad64aa8c010b8ad61e32091025442b3"},{"type":"FIX","url":"https://github.com/strukturag/libheif/commit/770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac"},{"type":"ADVISORY","url":"https://github.com/strukturag/libheif/releases/tag/v1.23.6"},{"type":"ADVISORY","url":"https://github.com/strukturag/libheif/security/advisories/GHSA-vv35-6hxg-95x8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142504"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libheif-before-1.23.6-bit-depth-mismatch-leads-to-out-of-bounds-read"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/strukturag/libheif","events":[{"introduced":"0"},{"fixed":"f81f28ac014b1c28dee483ac45b72c6b05bc421a"},{"fixed":"770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac"},{"fixed":"64a5bba75ad64aa8c010b8ad61e32091025442b3"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"1.23.6"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac"}]},{"range":[{"fixed":"64a5bba75ad64aa8c010b8ad61e32091025442b3"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v1.23.6","range":[{"fixed":"f81f28ac014b1c28dee483ac45b72c6b05bc421a"}],"source":"REFERENCES_TAG"}]}}],"versions":["v1.23.5","v1.23.4","v1.23.3","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","v1.18.0-rc1","v1.17.6","v1.17.5","v1.17.4","v1.17.3","v1.17.2","v1.17.1","v1.17.0","v1.16.2","v1.16.1","v1.16.0","v1.15.2","v1.15.1","v1.15.0","v1.14.2","v1.14.1","v1.14.0","v1.13.0","v1.12.0","v1.11.0","v1.10.0","v1.9.1","v1.9.0","v1.8.0","v1.7.0","v1.3.2","v1.3.1","v1.3.0","v1.2.0","v1.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142504.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}