imagemagick is vulnerable to Use After Free. A heap-use-after-free vulnerability allows an attacker to execute arbitrary code on a vulnerable system by exploiting a flaw in the way that ImageMagick allocates and frees memory.
access.redhat.com/security/cve/CVE-2023-5341
bugzilla.redhat.com/show_bug.cgi?id=2241774
github.com/ImageMagick/ImageMagick/commit/aa673b2e4defc7cad5bec16c4fc8324f71e531f1
lists.debian.org/debian-lts-announce/2024/02/msg00007.html
lists.fedoraproject.org/archives/list/[email protected]/message/LICYTADFJAFPZW3Y2MKNCJIUYODPAG4L/
lists.fedoraproject.org/archives/list/[email protected]/message/YAULDP3GG5KI3XITQ5XSMRSILCBZS2VK/
security-tracker.debian.org/tracker/CVE-2023-5341