Input validation error in ImageMagick - CVE-2012-3437

 

Input validation error in ImageMagick - CVE-2012-3437

Published: August 8, 2012 / Updated: August 11, 2020


Vulnerability identifier: #VU43758
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2012-3437
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform service disruption.

The Magick_png_malloc function in coders/png.c in ImageMagick 6.7.8 and earlier does not use the proper variable type for the allocation size, which might allow remote attackers to cause a denial of service (crash) via a crafted PNG file that triggers incorrect memory allocation.


Affected software

ImageMagick
Ubuntu
libmagick++2 (Ubuntu package)
imagemagick (Ubuntu package)
libmagick++3 (Ubuntu package)
libmagick++4 (Ubuntu package)

How to mitigate CVE-2012-3437

Install update from vendor's website.

libmagick++2 (Ubuntu package) - update to 7:6.5.7.8-1ubuntu1.3
imagemagick (Ubuntu package) - addressed in versions 7:6.5.7.8-1ubuntu1.3, 7:6.6.2.6-1ubuntu4.2, 8:6.6.0.4-3ubuntu1.2, 8:6.6.9.7-5ubuntu3.2
libmagick++3 (Ubuntu package) - addressed in versions 7:6.6.2.6-1ubuntu4.2, 8:6.6.0.4-3ubuntu1.2
libmagick++4 (Ubuntu package) - update to 8:6.6.9.7-5ubuntu3.2

External References

Related Security Bulletins