7.8
CWE
119 787
Advisory Published
CVE Published
Updated

CVE-2014-1947: Buffer Overflow

First published: Wed Feb 12 2014(Updated: )

A buffer overflow flaw affecting ImageMagick versions prior to 6.8.8-5 when handling PSD images was reported: <a href="http://secunia.com/advisories/56844/">http://secunia.com/advisories/56844/</a> Diffing ImageMagick-6.8.7/coders/psd.c and ImageMagick-6.8.8/coders/psd.c, it looks like the flaw may be FormatLocaleString() writing the amount of 6 long integers (approximately 48 bytes) into a buffer (layer_name) that is only 4 bytes: "" @@ -1224,7 +1224,7 @@ Allocate layered image. */ layer_info[i].image=CloneImage(image,layer_info[i].page.width, - layer_info[i].page.height == ~0U ? 1 : layer_info[i].page.height, + layer_info[i].page.height == ~0UL ? 1 : layer_info[i].page.height, MagickFalse,&amp;image-&gt;exception); if (layer_info[i].image == (Image *) NULL) { @@ -2112,9 +2112,6 @@ StringInfo *bim_profile; - unsigned char - layer_name[4]; - /* Open image file. */ @@ -2372,12 +2369,15 @@ property=(const char *) GetImageProperty(next_image,"label"); if (property == (const char *) NULL) { + char + layer_name[MaxTextExtent]; + (void) WriteBlobMSBLong(image,16); (void) WriteBlobMSBLong(image,0); (void) WriteBlobMSBLong(image,0); - (void) FormatLocaleString((char *) layer_name,MaxTextExtent, - "L%06ld",(long) layer_count++); - WritePascalString( image, (char*)layer_name, 4 ); + (void) FormatLocaleString(layer_name,MaxTextExtent,"L%06ld",(long) + layer_count++); + WritePascalString(image,layer_name,4); } else { "" CVE request: <a href="http://www.openwall.com/lists/oss-security/2014/02/12/2">http://www.openwall.com/lists/oss-security/2014/02/12/2</a>

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
ImageMagick<=6.5.4
SUSE Linux Enterprise Desktop=11-sp3
SUSE Linux Enterprise Server=11-sp3
SUSE Linux Enterprise Server=11-sp3
SUSE Linux Enterprise Software Development Kit=11-sp3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2014-1947?

    CVE-2014-1947 has been classified with a high severity level due to the potential for a remote exploit via crafted PSD images.

  • How do I fix CVE-2014-1947?

    To fix CVE-2014-1947, update ImageMagick to version 6.8.8-5 or later, where the vulnerability has been addressed.

  • What software versions are affected by CVE-2014-1947?

    CVE-2014-1947 affects ImageMagick versions prior to 6.8.8-5 and specific versions of SUSE Linux Enterprise Desktop and Server 11 SP3.

  • What type of vulnerability is CVE-2014-1947?

    CVE-2014-1947 is a buffer overflow vulnerability that occurs when ImageMagick processes problematic PSD image files.

  • Can CVE-2014-1947 be exploited remotely?

    Yes, CVE-2014-1947 can potentially be exploited remotely by an attacker sending a maliciously crafted PSD file to the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203