Heap-based buffer overflow in GraphicsMagick - CVE-2019-11506

 

Heap-based buffer overflow in GraphicsMagick - CVE-2019-11506

Published: April 28, 2019 / Updated: June 17, 2019


Vulnerability identifier: #VU18360
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-11506
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in MAT writer within the function WriteMATLABImage of coders/mat.c, related to ExportRedQuantumType in magick/export.c. A remote attacker can create a crafted image file, pass it to the affected application, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

GraphicsMagick
Debian Linux
Opensuse
SUSE Linux
graphicsmagick (Ubuntu package)
graphicsmagick (Debian package)

How to mitigate CVE-2019-11506

Update to version 1.4 snapshot-20190403 Q8.

GraphicsMagick - update to 1.3.32
graphicsmagick (Ubuntu package) - update to 1.3.28-2ubuntu0.1
graphicsmagick (Debian package) - addressed in versions 1.3.30+hg15796-1~deb9u3, 1.4~hg15978-1+deb10u1

External References

Related Security Bulletins