{"schemaVersion":3,"id":"CVE-2026-32741","aliases":["UBUNTU-CVE-2026-32741","DEBIAN-CVE-2026-32741"],"status":"published","duplicateOf":null,"title":null,"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.00449,"percentile":0.37673,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.10600000000000001,"baselineDate":"2026-09-19T00: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":0.37673}],"last30":[{"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":0.37673}]},"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":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","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 ('Classic Buffer Overflow')","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},{"text":"< 1.19.8-1+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.23.1-1","noFixRecorded":false,"fixedIn":null}],"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},{"text":"< 1.20.2-1ubuntu0.4","noFixRecorded":false,"fixedIn":null},{"text":"< 1.21.2-3ubuntu0.1","noFixRecorded":false,"fixedIn":null}],"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}],"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":["MGASA-2026-0247","OPENSUSE-SU-2026:10878-1","OPENSUSE-SU-2026:20974-1","SUSE-SU-2026:22153-1","SUSE-SU-2026:2622-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}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:10:16.464Z","stale":false,"partial":false}}