The CImg.h image library uses an unsafe pattern that is prone to integer overflows to calculate the required heap buffer allocation size. The resulting small heap buffers can be trivially overwritten by a malformed image input. This has been demonstrated at least with the load_pnm() image parsing function. The gmic tool uses CImg and directly exposes the image open functions to the user and is affected by this bug. This bug is public, confirmed by upstream and fixed in: https://github.com/dtschump/CImg/pull/295 Tracked by ubuntu in: https://bugs.launchpad.net/ubuntu/+source/cimg/+bug/1900983
please assign CVE
(In reply to Kai Dietrich from comment #1) > please assign CVE Thanks for reporting this. Please use CVE-2020-25693.