CVE-2025-55298

ImageMagick Format String Bug in InterpretImageFilename leads to arbitrary code execution

Published Aug 26, 2025 CVSS 3.1 · 7.5 High EPSS 4.7% KEV · Not listed
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling a wide range of attacks from heap overflow to remote code execution. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4297-1 imagemagick security update
Debian DSA Debian DSA DSA-5997-1 imagemagick security update
EUVD EUVD EUVD-2025-25836 ImageMagick has a Format String Bug in InterpretImageFilename leads to arbitrary code execution
Github GHSA Github GHSA GHSA-9ccg-6pjw-x645 ImageMagick has a Format String Bug in InterpretImageFilename leads to arbitrary code execution
Ubuntu USN Ubuntu USN USN-7812-1 ImageMagick vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Imagemagick
Imagemagick imagemagick
Vendors & Products Imagemagick
Imagemagick imagemagick
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling a wide range of attacks from heap overflow to remote code execution. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.
Title ImageMagick Format String Bug in InterpretImageFilename leads to arbitrary code execution
Weaknesses CWE-123
CWE-134
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 6:13 PM
Reserved
Aug 12, 2025, 4:15 PM
Status
Modified
Published
Aug 26, 2025, 6:15 PM
Modified
Jun 17, 2026, 9:41 AM
Severity
Important
Public date
Aug 26, 2025, 5:20 PM