{"schemaVersion":4,"id":"CVE-2026-32741","aliases":["UBUNTU-CVE-2026-32741","DEBIAN-CVE-2026-32741"],"status":"published","duplicateOf":null,"title":"libheif has a heap buffer overflow in decode_mask_image()","description":"libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and below contain a heap buffer overflow in MaskImageCodec::decode_mask_image(). When decoding a HEIF file containing a mask image (mski), the function copies the full iloc extent data into a pixel buffer using memcpy(dst, data.data(), data.size()). The copy length data.size() is determined by the iloc extent in the file (attacker-controlled), while the destination buffer is sized based on the declared image dimensions. Because no upper-bound check exists on the data length, a crafted file whose iloc extent exceeds the pixel buffer allocation overflows the heap. The vulnerable single-memcpy branch is reached when the mskC property specifies bits_per_pixel = 8 and the ispe property declares an even width ≥ 64 (so that stride == width), with no changes to default security limits or external codec plugins required. This issue has been fixed in version 1.22.0.","dates":{"published":"2026-05-19T19:57:26.525Z","modified":"2026-07-15T01:07:42.833Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","exploitability":7.2,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","exploitability":7.2,"impact":7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0046,"percentile":0.41603,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.117,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00343},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00449,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0046,"percentile":0.41603}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00343,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0046,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0046,"percentile":0.41603}]},"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-122","name":"Heap-based Buffer Overflow","description":"The product writes past the end of a buffer that was allocated on the heap.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"},{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input","description":"The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/120.html"}],"affected":[{"vendor":"debian","product":"libheif","name":"libheif","label":"libheif","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libheif","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 1.19.8-1+deb13u1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.19.8-1+deb13u1","endInclusive":false}},{"text":"< 1.23.1-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.23.1-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 1.19.8-1+deb13u1 | < 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.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.17.6-1ubuntu4.4","endInclusive":false}},{"text":"< 1.20.2-1ubuntu0.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.20.2-1ubuntu0.4","endInclusive":false}},{"text":"< 1.21.2-3ubuntu0.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.21.2-3ubuntu0.1","endInclusive":false}}],"versionsText":"< 1.17.6-1ubuntu4.4 | < 1.20.2-1ubuntu0.4 | < 1.21.2-3ubuntu0.1","eol":null,"hubHref":null},{"vendor":"strukturag","product":"libheif","name":"libheif","label":"libheif","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.22.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1.22.0","endInclusive":false}}],"versionsText":"< 1.22.0","eol":null,"hubHref":"/vendor/strukturag/libheif"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-j3w5-7whq-p37q","label":"github.com/strukturag/libheif/security/advisories/GHSA-j3w5-7whq-p37q","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT"]},{"url":"https://github.com/strukturag/libheif/releases/tag/v1.22.0","label":"github.com/strukturag/libheif/releases/tag/v1.22.0","hostname":"github.com","tags":["X Refsource MISC","REPORT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-32741","label":"access.redhat.com/security/cve/CVE-2026-32741","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2480002","label":"bugzilla.redhat.com/show_bug.cgi?id=2480002","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32741.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32741.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://ubuntu.com/security/CVE-2026-32741","label":"ubuntu.com/security/CVE-2026-32741","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-32741","label":"www.cve.org/CVERecord?id=CVE-2026-32741","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8454-1","label":"ubuntu.com/security/notices/USN-8454-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-32741","label":"security-tracker.debian.org/tracker/CVE-2026-32741","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-6417-1","MGASA-2026-0247","OPENSUSE-SU-2026:10878-1","OPENSUSE-SU-2026:20974-1","SUSE-SU-2026:22153-1","SUSE-SU-2026:2622-1","USN-8454-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:10878-1","OPENSUSE-SU-2026:20974-1","SUSE-SU-2026:22153-1","SUSE-SU-2026:2622-1","USN-8454-1"]},"timeline":[{"kind":"published","date":"2026-05-19T19:57:26.525Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:07:42.833Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,71],"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.0046,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-07-15T01:07:42.833Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","version":"3.1","headline":true},{"type":"cvss","source":"osv_ubuntu","date":"2026-07-15T01:07:42.833Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-07-15T01:07:42.833Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-07-15T01:07:42.833Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-05-20T14:37:31.409Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.0046,"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:16:36.551Z","stale":false,"partial":false}}