Buffer overflow in GraphicsMagick - CVE-2017-14042

 

Buffer overflow in GraphicsMagick - CVE-2017-14042

Published: August 31, 2017 / Updated: August 3, 2020


Vulnerability identifier: #VU33243
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-14042
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.

A memory allocation failure was discovered in the ReadPNMImage function in coders/pnm.c in GraphicsMagick 1.3.26. The vulnerability causes a big memory allocation, which may lead to remote denial of service in the MagickRealloc function in magick/memory.c.


Affected software

GraphicsMagick
graphicsmagick (Alpine package)
GraphicsMagick
Fedora
SUSE Linux
Opensuse

How to mitigate CVE-2017-14042

Install update from vendor's website.

GraphicsMagick - update to 1.3.27
graphicsmagick (Alpine package) - addressed in versions 1.3.26-r5, 1.3.27-r0
GraphicsMagick - addressed in versions 1.3.34-1.el7, 1.3.34-1.el8

External References

Related Security Bulletins