Divide-by-zero error in GraphicsMagick - CVE-2018-9018
Published: May 14, 2018
Vulnerability identifier: #VU12644
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2018-9018
CWE-ID: CWE-369
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to cause DoS condition on the target system.
The weakness exists in the ReadMNGImage function of coders/png.c due to divide-by-zero error. A remote attacker can trick the victim into opening a specially crafted mng file and cause the service to crash.
The weakness exists in the ReadMNGImage function of coders/png.c due to divide-by-zero error. A remote attacker can trick the victim into opening a specially crafted mng file and cause the service to crash.
Affected software
GraphicsMagick
graphicsmagick (Alpine package)
libgraphicsmagick-q16-3 (Ubuntu package)
graphicsmagick (Ubuntu package)
libgraphicsmagick3 (Ubuntu package)
GraphicsMagick
Fedora
Ubuntu
graphicsmagick (Alpine package)
libgraphicsmagick-q16-3 (Ubuntu package)
graphicsmagick (Ubuntu package)
libgraphicsmagick3 (Ubuntu package)
GraphicsMagick
Fedora
Ubuntu
How to mitigate CVE-2018-9018
Install update from vendor's website.
libgraphicsmagick-q16-3 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.4+really1.3.35-1ubuntu0.1
graphicsmagick (Ubuntu package) - addressed in versions Ubuntu Pro, 1.4+really1.3.35-1ubuntu0.1
libgraphicsmagick3 (Ubuntu package) - update to Ubuntu Pro
GraphicsMagick - addressed in versions 1.3.34-1.el7, 1.3.34-1.el8, 1.3.34-1.fc30, 1.3.34-1.fc31
graphicsmagick (Ubuntu package) - addressed in versions Ubuntu Pro, 1.4+really1.3.35-1ubuntu0.1
libgraphicsmagick3 (Ubuntu package) - update to Ubuntu Pro
GraphicsMagick - addressed in versions 1.3.34-1.el7, 1.3.34-1.el8, 1.3.34-1.fc30, 1.3.34-1.fc31