libheif 1.4.0 has a use-after-free in heif::HeifContext::Image::set_alpha_channel in heif_context.h because heif_context.cc mishandles references to non-existing alpha images. There is a vulnerability in the strided image data parsing code in the emscripten wrapper for libheif. An attacker could exploit this through a crafted image file to cause a buffer overflow in linear memory during a memcpy call.
Created libheif tracking bugs for this issue: Affects: fedora-all [bug 2294455]
CVE-2019-11471 was fixed in libheif-1.4.1 (https://github.com/strukturag/libheif/commit/8dc35cda0ae5ad7bf2d2fae7354e08074ac79d18) CVE-2023-0996 was fixed in libheif-1.15.0 (https://github.com/strukturag/libheif/commit/03db9fb196501ff6690af2238d0355d98f768d5c)