In GraphicsMagick from version 1.3.30 to 1.4 snapshot-20190403 Q8, there is a heap-based buffer overflow in the function WriteMATLABImage of coders/mat.c, which allows an attacker to cause a denial of service or possibly have unspecified other impact via a crafted image file. This is related to ExportRedQuantumType in magick/export.c.
https://sourceforge.net/p/graphicsmagick/bugs/604/
http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/57ac0ae85e2a
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00021.html
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00020.html
https://lists.debian.org/debian-lts-announce/2019/05/msg00027.html
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00055.html
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00057.html
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00001.html
Source: MITRE
Published: 2019-04-24
Updated: 2023-03-01
Type: CWE-787
Base Score: 6.8
Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P
Impact Score: 6.4
Exploitability Score: 8.6
Severity: MEDIUM
Base Score: 8.8
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Impact Score: 5.9
Exploitability Score: 2.8
Severity: HIGH