Integer overflow in GraphicsMagick - CVE-2020-10938

 

Integer overflow in GraphicsMagick - CVE-2020-10938

Published: March 31, 2020


Vulnerability identifier: #VU26484
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-10938
CWE-ID: CWE-190
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 integer overflow within the HuffmanDecodeImage in "magick/compress.c" file. A remote attacker can trigger integer overflow and execute arbitrary code on the target system, leading to heap-based buffer overflow.

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


Affected software

GraphicsMagick
graphicsmagick (Debian package)
graphicsmagick (Alpine package)
GraphicsMagick
GraphicsMagick-help
GraphicsMagick-c++-devel
GraphicsMagick-c++
GraphicsMagick-debuginfo
GraphicsMagick-perl
GraphicsMagick-debugsource
GraphicsMagick-devel
SUSE Linux
Opensuse
openEuler

How to mitigate CVE-2020-10938

Install update from vendor's website.

GraphicsMagick - update to 1.3.35
graphicsmagick (Debian package) - addressed in versions 1.3.30+hg15796-1+b1, 1.3.30+hg15796-1~deb9u4, 1.4+really1.3.33+hg16115-1+b1, 1.4+really1.3.35-1~deb10u1
graphicsmagick (Alpine package) - addressed in versions 1.3.35-r0, 1.3.35-r2
GraphicsMagick - update to 1.3.30-9
GraphicsMagick-help - update to 1.3.30-9
GraphicsMagick-c++-devel - update to 1.3.30-9
GraphicsMagick-c++ - update to 1.3.30-9
GraphicsMagick-debuginfo - update to 1.3.30-9
GraphicsMagick-perl - update to 1.3.30-9
GraphicsMagick-debugsource - update to 1.3.30-9
GraphicsMagick-devel - update to 1.3.30-9

External References

Related Security Bulletins