CVE-2012-1185
Description
ImageMagick 6.7.5 and earlier have integer overflows in EXIF ResolutionUnit tag handling, enabling memory corruption and possible code execution via crafted images.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ImageMagick 6.7.5 and earlier have integer overflows in EXIF ResolutionUnit tag handling, enabling memory corruption and possible code execution via crafted images.
Vulnerability
Multiple integer overflow vulnerabilities exist in ImageMagick versions 6.7.5 and earlier, specifically in magick/profile.c or magick/property.c. The flaw occurs when processing the ResolutionUnit tag in the EXIF IFD0 of an image. An attacker can supply a crafted offset value that causes an integer overflow when computing the sum of number_bytes and offset, leading to memory corruption. This vulnerability exists due to an incomplete fix for CVE-2012-0247 [1][3].
Exploitation
To exploit this vulnerability, an attacker must craft a malicious image file containing a specially crafted ResolutionUnit tag with an offset value that triggers the integer overflow. The attacker then needs to deliver this file to a user or automated system that processes it using ImageMagick. User interaction is required (e.g., opening the file or automated processing). No special network position is needed; the attack vector is local via file handling [1][2].
Impact
Successful exploitation can result in a denial of service (application crash) due to memory corruption. In some cases, arbitrary code execution may be possible with the privileges of the user invoking the program, leading to full compromise of the affected system [1][4].
Mitigation
Ubuntu released updated packages in USN-1435-1 on 1 May 2012 [1]. The fix was also committed to the ImageMagick subversion repository prior to the CVE disclosure [3][4]. Users should upgrade to ImageMagick version 6.7.5-7 or later. No workaround besides applying the patch is available. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
- USN-1435-1: ImageMagick vulnerabilities | Ubuntu security notices | Ubuntu
- About Secunia Research | Flexera
- oss-security - CVE-2012-1185 / CVE-2012-1186 assignment notification - incomplete ImageMagick fixes for CVE-2012-0247
- 804588 – (CVE-2012-1185) CVE-2012-1185: ImageMagick: Incorrect fix for CVE-2012-0247
AI Insight generated on May 23, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
10cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*range: <=6.7.5
- (no CPE)range: <=6.7.5
cpe:2.3:o:canonical:ubuntu_linux:10.04:*:*:*:*:*:*:*+ 3 more
- cpe:2.3:o:canonical:ubuntu_linux:10.04:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:11.04:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:11.10:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*
- cpe:2.3:o:debian:debian_linux:6.0:*:*:*:*:*:*:*
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
14- www.openwall.com/lists/oss-security/2012/03/19/5nvdMailing ListPatchThird Party Advisory
- bugzilla.redhat.com/show_bug.cginvdIssue TrackingPatchThird Party Advisory
- lists.opensuse.org/opensuse-updates/2012-06/msg00001.htmlnvdMailing ListThird Party Advisory
- ubuntu.com/usn/usn-1435-1nvdThird Party Advisory
- www.debian.org/security/2012/dsa-2462nvdThird Party Advisory
- www.securityfocus.com/bid/51957nvdThird Party AdvisoryVDB Entry
- exchange.xforce.ibmcloud.com/vulnerabilities/76140nvdThird Party AdvisoryVDB Entry
- secunia.com/advisories/47926nvdBroken Link
- secunia.com/advisories/48974nvdBroken Link
- secunia.com/advisories/49043nvdBroken Link
- secunia.com/advisories/49317nvdBroken Link
- trac.imagemagick.org/changeset/6998/ImageMagick/branches/ImageMagick-6.7.5/magick/profile.cnvdBroken Link
- trac.imagemagick.org/changeset/6998/ImageMagick/branches/ImageMagick-6.7.5/magick/property.cnvdBroken Link
- www.osvdb.org/80556nvdBroken Link
News mentions
0No linked articles in our index yet.