{"schemaVersion":4,"id":"CVE-2026-62291","aliases":["UBUNTU-CVE-2026-62291","DEBIAN-CVE-2026-62291"],"status":"published","duplicateOf":null,"title":"libheif: Heap out of bounds write in libheif uncompressed encoder when writing images with mismatched auxiliary alpha dimensions","description":"libheif is a HEIF and AVIF file format decoder and encoder. In 1.23.0 and earlier, a crafted image sequence with a 2x2 primary plane and a 256x256 auxiliary alpha plane can cause attacker-controlled heap corruption during a normal decode and re-encode workflow. Track_Visual::decode_next_image_sample() calls transfer_channel_from_image_as() without checking that the auxiliary alpha dimensions match the main frame. The resulting inconsistent image reaches heif_track_decode_next_image() and then heif_context_encode_image(). In unc_encoder::encode(), unc_encoder_component_interleave::encode_tile() sizes its buffer with compute_tile_data_size_bytes() using the primary dimensions but copies each component using its actual plane dimensions. The oversized alpha plane is therefore copied beyond the allocation, causing an out-of-bounds write; the inverse size mismatch can also produce an out-of-bounds read. This issue is fixed in version 1.23.1.","dates":{"published":"2026-08-18T21:21:32.182Z","modified":"2026-08-21T19:11:12.114Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":4.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00222,"percentile":0.13551,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.035000000000000024,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00187},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0013,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00164,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00222,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00222,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00222,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00222,"percentile":0.13551}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00187,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00222,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00222,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00222,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00222,"percentile":0.13551}]},"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-125","name":"Out-of-bounds Read","description":"The product reads data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"libheif","name":"libheif","label":"libheif","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libheif","purlType":"deb","versions":[{"text":"< 1.23.1-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.1-1","endInclusive":false}}],"versionsText":"< 1.23.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libheif","name":"libheif","label":"libheif","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libheif","purlType":"deb","versions":[{"text":"< 1.17.6-1ubuntu4.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.17.6-1ubuntu4.8","endInclusive":false}},{"text":"< 1.21.2-3ubuntu0.5","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.21.2-3ubuntu0.5","endInclusive":false}}],"versionsText":"< 1.17.6-1ubuntu4.8 | < 1.21.2-3ubuntu0.5","eol":null,"hubHref":null},{"vendor":"strukturag","product":"libheif","name":"libheif","label":"libheif","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.23.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.1","endInclusive":false}}],"versionsText":"< 1.23.1","eol":null,"hubHref":"/vendor/strukturag/libheif"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-xpw3-9rhw-482x","label":"github.com/strukturag/libheif/security/advisories/GHSA-xpw3-9rhw-482x","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/strukturag/libheif/commit/ac5521ad50399885de96bb6a0733a5d2442740f9","label":"github.com/strukturag/libheif/commit/ac5521ad50399885de96bb6a0733a5d2442740f9","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.23.1","label":"github.com/strukturag/libheif/releases/tag/v1.23.1","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-62291","label":"ubuntu.com/security/CVE-2026-62291","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-62291","label":"www.cve.org/CVERecord?id=CVE-2026-62291","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8683-1","label":"ubuntu.com/security/notices/USN-8683-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8774-1","label":"ubuntu.com/security/notices/USN-8774-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-62291","label":"security-tracker.debian.org/tracker/CVE-2026-62291","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:11416-1","OPENSUSE-SU-2026:21644-1","SUSE-SU-2026:23320-1","SUSE-SU-2026:3597-1","USN-8683-1","USN-8774-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:11416-1","OPENSUSE-SU-2026:21644-1","SUSE-SU-2026:23320-1","SUSE-SU-2026:3597-1","USN-8683-1","USN-8774-1"]},"timeline":[{"kind":"published","date":"2026-08-18T21:21:32.182Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-08-21T19:11:12.114Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,53],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00222,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-08-21T19:11:12.114Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2026-08-21T19:11:12.114Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-08-21T19:11:12.114Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-08-21T19:11:12.114Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-08-21T19:08:04.109Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00222,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:44:05.984Z","stale":false,"partial":false}}