CVE-2014-1947
ImageMagick vulnerability analysis and mitigation

Overview

CVE-2014-1947 is a stack-based buffer overflow vulnerability in the WritePSDImage function in coders/psd.c in ImageMagick 6.5.4 and earlier. The vulnerability occurs when handling PSD images with a large number of layers, specifically involving the L%02ld string format. The issue was discovered and disclosed in February 2014, affecting both ImageMagick and GraphicsMagick image processing software (CVE Details).

Technical details

The vulnerability stems from a buffer overflow condition in the WritePSDImage function where the code did not properly handle cases with more than 99 layers. When processing PSD files, the function uses a format string 'L%02ld' to create layer names, but the destination buffer (layer_name[4]) is too small to accommodate layer numbers beyond 99. For example, L99\0 is safe, but L100\0 causes a buffer overflow of 1 or more bytes (OSS Security). In GraphicsMagick, while the vulnerability exists, it is caught by the fortify source buffer overflow protection (Red Hat).

Impact

The vulnerability allows remote attackers to cause a denial of service (crash) and potentially execute arbitrary code via a PSD image containing a large number of layers (CVE Details). The maximum overflow is architecture-dependent, with potential for up to 18 bytes of overflow on 64-bit systems (Red Hat).

Mitigation and workarounds

The vulnerability was fixed in ImageMagick with changeset 13736, which increased the size of the layer_name buffer to accommodate larger layer numbers. Various Linux distributions have released security updates to address this vulnerability, including SUSE Enterprise Linux (SUSE) and Red Hat-based systems. For GraphicsMagick, the fix was implemented in changeset 14139:a083f9eeef1d (Red Hat).

Additional resources


SourceThis report was generated using AI

Related ImageMagick vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-69204HIGH7.5
  • ImageMagickImageMagick
  • ImageMagick-config-7-upstream-secure
NoYesDec 30, 2025
CVE-2025-68618HIGH7.5
  • C#C#
  • ImageMagick-config-7-upstream-open
NoYesDec 30, 2025
CVE-2025-66628HIGH7.5
  • C#C#
  • ImageMagick-extra
NoYesDec 10, 2025
CVE-2025-68950MEDIUM6.2
  • C#C#
  • Magick.NET-Q8-OpenMP-arm64
NoYesDec 30, 2025
CVE-2025-68469LOW2
  • C#C#
  • Magick.NET-Q8-x64
NoYesDec 18, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management