{"id":"CVE-2026-142502","summary":"libheif 1.16.0 before 1.23.6 Out-of-Bounds Read via Sharp-YUV Conversion","details":"libheif 1.16.0 before 1.23.6 contains an out-of-bounds read vulnerability in Op_Any_RGB_to_YCbCr_420_Sharp::convert_colorspace() that passes unchecked 10-bit or 12-bit RGB samples to SharpYuvConvert(). Attackers can supply a crafted HEIF file producing samples above the declared bit depth so libsharpyuv gamma table lookups read out of bounds, crashing the process or leaking memory into output pixels.","aliases":["GHSA-q7mw-2fmm-5q94"],"modified":"2026-12-02T19:00:12.367329644Z","published":"2026-12-02T17:42:25.463Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-129"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142502.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142502.json"},{"type":"PACKAGE","url":"https://github.com/strukturag/libheif"},{"type":"ARTICLE","url":"https://github.com/strukturag/libheif/blob/v1.23.5/libheif/color-conversion/rgb2yuv_sharp.cc#L251-L255"},{"type":"FIX","url":"https://github.com/strukturag/libheif/commit/8dc32399dea3e6e9e6b4a3acf270feb80008649c"},{"type":"ADVISORY","url":"https://github.com/strukturag/libheif/releases/tag/v1.23.6"},{"type":"ADVISORY","url":"https://github.com/strukturag/libheif/security/advisories/GHSA-q7mw-2fmm-5q94"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142502"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libheif-1.16.0-before-1.23.6-out-of-bounds-read-via-sharp-yuv-conversion"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/strukturag/libheif","events":[{"introduced":"6f479d76f57d68bb8d1a842aea37544834fdbe40"},{"fixed":"f81f28ac014b1c28dee483ac45b72c6b05bc421a"},{"fixed":"8dc32399dea3e6e9e6b4a3acf270feb80008649c"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.16.0"},{"fixed":"1.23.6"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"8dc32399dea3e6e9e6b4a3acf270feb80008649c"}]},{"range":[{"fixed":"f81f28ac014b1c28dee483ac45b72c6b05bc421a"}],"source":"REFERENCES_TAG","original_tag":"v1.23.6"}]}}],"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"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142502.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}