{"schemaVersion":3,"id":"CVE-2026-62291","aliases":["UBUNTU-CVE-2026-62291","DEBIAN-CVE-2026-62291"],"status":"published","duplicateOf":null,"title":null,"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.00187,"percentile":0.0785,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.056999999999999995,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0013},"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":0.0785}],"last30":[{"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":0.0785}]},"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}],"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},{"text":"< 1.21.2-3ubuntu0.5","noFixRecorded":false,"fixedIn":null}],"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}],"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}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:23:43.495Z","stale":false,"partial":false}}