libheif <= 1.17.6 contains a memory leak in the function JpegEncoder::Encode. This flaw allows an attacker to cause a denial of service attack. https://github.com/strukturag/libheif/issues/1073
Created libheif tracking bugs for this issue: Affects: fedora-all [bug 2267897]