{"schemaVersion":4,"id":"CVE-2026-142504","aliases":["DEBIAN-CVE-2026-142504"],"status":"published","duplicateOf":null,"title":"libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read","description":"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.","dates":{"published":"2026-12-02T17:42:23.352Z","modified":"2026-12-05T03:23:17.443Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6,"severity":"medium","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","exploitability":4.1,"impact":7,"computed":true}]},"epss":{"probability":0.00407,"percentile":0.37084,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-12-03T00:00:00.000Z","score":0.00407,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00407,"percentile":0.37084}],"last30":[{"date":"2026-12-03T00:00:00.000Z","score":0.00407,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00407,"percentile":0.37084}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1284","name":"Improper Validation of Specified Quantity in Input","description":"The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1284.html"}],"affected":[{"vendor":"debian","product":"libheif","name":"libheif","label":"libheif","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libheif","purlType":"deb","versions":[{"text":"< 1.15.1-1+deb12u2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.15.1-1+deb12u2","endInclusive":false}},{"text":"< 1.23.6-2~deb13u1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.6-2~deb13u1","endInclusive":false}},{"text":"< 1.23.6-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.6-1","endInclusive":false}}],"versionsText":"< 1.15.1-1+deb12u2 | < 1.23.6-2~deb13u1 | < 1.23.6-1","eol":null,"hubHref":null},{"vendor":"strukturag","product":"libheif","name":"libheif","label":"libheif","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.23.6","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.6","endInclusive":false}}],"versionsText":"< 1.23.6","eol":null,"hubHref":"/vendor/strukturag/libheif"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-vv35-6hxg-95x8","label":"github.com/strukturag/libheif/security/advisories/GHSA-vv35-6hxg-95x8","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://github.com/strukturag/libheif/commit/770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac","label":"github.com/strukturag/libheif/commit/770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/strukturag/libheif/commit/64a5bba75ad64aa8c010b8ad61e32091025442b3","label":"github.com/strukturag/libheif/commit/64a5bba75ad64aa8c010b8ad61e32091025442b3","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.23.6","label":"github.com/strukturag/libheif/releases/tag/v1.23.6","hostname":"github.com","tags":["Release Notes"]},{"url":"https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L590","label":"github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc","hostname":"github.com","tags":["Technical Description"]},{"url":"https://www.vulncheck.com/advisories/libheif-before-1.23.6-bit-depth-mismatch-leads-to-out-of-bounds-read","label":"www.vulncheck.com/advisories/libheif-before-1.23.6-bit-depth-mismatch-leads-to-out-of-bounds-read","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-142504","label":"security-tracker.debian.org/tracker/CVE-2026-142504","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4959-1","DSA-6583-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-12-02T17:42:23.352Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-05T03:23:17.443Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,60],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"cvss","source":"cve.org","date":"2026-12-05T03:23:17.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6,"vector":"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","version":"4.0","headline":true},{"type":"cvss","source":"cve.org","date":"2026-12-05T03:23:17.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-12-05T03:23:17.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"type":"cvss","source":"nvd","date":"2026-12-05T03:23:17.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-12-05T03:23:17.443Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-12-05T03:22:59.749Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"},{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00407,"stale":false,"promoted":null}],"epss":{"value":0.00407,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:02:19.492Z","stale":false,"partial":false}}