
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-53101 is a stack buffer overflow vulnerability discovered in ImageMagick, a free and open-source software used for editing and manipulating digital images. The vulnerability affects versions prior to 7.1.2-0 and 6.9.13-26, specifically in the magick mogrify
command. The issue was disclosed on July 14, 2025, and has been assigned a CVSS score of 7.4 (High) (NVD, SecurityOnline).
The vulnerability occurs when specifying multiple consecutive %d format specifiers in a filename template, causing internal pointer arithmetic to generate an address below the beginning of the stack buffer, resulting in a stack overflow through vsnprintf()
. The flaw lies in the InterpretImageFilename() function within image.c, where format specifiers such as %d, %o, and %x are used to dynamically create filenames for processed images. The issue is classified under CWE-124: Buffer Underwrite, where memory is written to an address before the allocated space. The vulnerability carries a CVSS v3.1 base score of 7.4 with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H (GitHub Advisory).
If successfully exploited, the vulnerability can lead to application crashes, information leakage, and potential remote code execution, especially in contexts where user-controlled templates are passed directly to CLI commands. This is particularly concerning in automated environments where untrusted input controls filename templates, such as web servers, CI/CD pipelines, or shared graphic processing utilities (SecurityOnline).
The vulnerability has been patched in ImageMagick versions 7.1.2-0 and 6.9.13-26. Users are strongly advised to upgrade to one of these patched versions immediately. The fix addresses the core problem by modifying the offset handling logic to ensure template parsing aligns with actual field widths (NVD, GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."