CVE-2025-53101

ImageMagick has Stack Buffer Overflow in image.c

State
Published
Severity
7.4 High
Published
Jul 14, 2025
Updated
Nov 3, 2025
Reserved
Jun 25, 2025

Read the record on cve.org

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0 and 6.9.13-26, in ImageMagick's `magick mogrify` command, specifying multiple consecutive `%d` format specifiers in a filename template causes internal pointer arithmetic to generate an address below the beginning of the stack buffer, resulting in a stack overflow through `vsnprintf()`. Versions 7.1.2-0 and 6.9.13-26 fix the issue.

Scores

CVSSScoreVectorSource
3.17.4 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:HGitHub_M

Weaknesses

  • CWE-124 Buffer Underwrite ('Buffer Underflow')

Affected Products

ProductVersions
ImageMagickImageMagick
  • < 7.1.2-0Affected
  • < 6.9.13-26Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.