When FreeImage 3.18.0 reads a tiff file, it will be handed to the Load function of the PluginTIFF.cpp file, but a memcpy occurs in which the destination address and the size of the copied data are not considered, resulting in a heap overflow.
https://www.debian.org/security/2019/dsa-4593
https://usn.ubuntu.com/4529-1/
https://sourceforge.net/p/freeimage/discussion/36111/thread/e06734bed5/
https://security.gentoo.org/glsa/202107-02
https://seclists.org/bugtraq/2019/Dec/45
https://lists.debian.org/debian-lts-announce/2019/12/msg00012.html