Heap-based buffer overflow in GraphicsMagick - CVE-2020-12672

 

Heap-based buffer overflow in GraphicsMagick - CVE-2020-12672

Published: May 6, 2020 / Updated: December 27, 2022


Vulnerability identifier: #VU27562
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-12672
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 within the "ReadMNGImage" in coders/png.c. A remote attacker can 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
Gentoo Linux
Ubuntu
SUSE Linux
Opensuse
openEuler
graphicsmagick (Alpine package)
collectd (Alpine package)
libgraphicsmagick++3 (Ubuntu package)
libgraphicsmagick3 (Ubuntu package)
graphicsmagick (Ubuntu package)
libgraphicsmagick-q16-3 (Ubuntu package)
libgraphicsmagick++-q16-12 (Ubuntu package)
GraphicsMagick-devel
GraphicsMagick-debugsource
GraphicsMagick-perl
GraphicsMagick-debuginfo
GraphicsMagick
GraphicsMagick-help
GraphicsMagick-c++-devel
GraphicsMagick-c++
media-gfx/graphicsmagick

How to mitigate CVE-2020-12672

Install update from vendor's website.

graphicsmagick (Alpine package) - update to 1.3.35-r2
libgraphicsmagick++3 (Ubuntu package) - update to 1.3.18-1ubuntu3.1+esm7
libgraphicsmagick3 (Ubuntu package) - update to 1.3.18-1ubuntu3.1+esm7
graphicsmagick (Ubuntu package) - addressed in versions 1.3.18-1ubuntu3.1+esm7, 1.3.23-1ubuntu0.6+esm1, 1.3.28-2ubuntu0.1+esm1, 1.4+really1.3.35-1ubuntu0.1~esm1, 1.4+really1.3.35-1ubuntu0.1
libgraphicsmagick-q16-3 (Ubuntu package) - addressed in versions 1.3.23-1ubuntu0.6+esm1, 1.3.28-2ubuntu0.1+esm1, 1.4+really1.3.35-1ubuntu0.1~esm1, 1.4+really1.3.35-1ubuntu0.1
libgraphicsmagick++-q16-12 (Ubuntu package) - addressed in versions 1.3.23-1ubuntu0.6+esm1, 1.3.28-2ubuntu0.1+esm1, 1.4+really1.3.35-1ubuntu0.1~esm1
GraphicsMagick-devel - update to 1.3.30-9
GraphicsMagick-debugsource - update to 1.3.30-9
GraphicsMagick-perl - update to 1.3.30-9
GraphicsMagick-debuginfo - update to 1.3.30-9
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
media-gfx/graphicsmagick - update to 1.3.38

External References

Related Security Bulletins