{"id":"CVE-2026-47714","published":"2026-07-21T21:04:06Z","modified":"2026-07-22T13:37:10Z","title":"libheif has integer overflow in inline mask size calculation that causes undersized buffer allocation","vendor":"strukturag","product":"libheif","tier":"tail","description":{"text":"libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, the inline mask parsing code in `libheif/region.cc` contains an integer overflow. Both `width` and `height` are `unsigned int` (32-bit) values parsed from the HEIF file. Their product can exceed `UINT32_MAX`, wrapping to a small value before the division by 8. This causes an undersized buffer allocation, leading to out-of-bounds memory access when the mask data is later interpreted as a `width x height` bitmap. Version 1.22.0 patches the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00153,"percentile":0.04492,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-h4wm-6wwf-qvhx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":0.9},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"strukturag","affectedVersions":[{"vendor":"strukturag","product":"libheif","versions":["< 1.22.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-22T13:37:05.993805Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-46434","exploited":false,"provenance":"source"}}