Cloudanix VulnDB

CVE-2025-55298

None

CVSS

—

EPSS

4.7%

Published

Aug 26, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in widely used image software lets attackers run their own code on systems that process uploaded pictures by feeding specially crafted file names.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Full Compromise
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Format string vulnerability in InterpretImageFilename allows unsanitized user input to reach FormatLocaleString, enabling arbitrary memory writes that can escalate from heap corruption to remote code execution.

Why it matters to the business

Applications relying on ImageMagick for image handling face risk of full system compromise, potentially disrupting image-processing workflows and exposing sensitive data across dependent services.

How an attack unfolds

An attacker supplies a crafted filename, metadata, or image path containing format specifiers that reach InterpretImageFilename; the unsanitized string is passed to FormatLocaleString, corrupting memory and achieving code execution without authentication.

How to fix it

Upgrade to ImageMagick 6.9.13-28 or 7.1.2-2. For GIT builds apply commits 439b362b93c074eea6c3f834d84982b43ef057d5 (main) or 2fe4a1049f469029878b05426cbbf652a94006f8 (6 branch).

How to confirm the fix worked

Verify installed version against 6.9.13-28 / 7.1.2-2 or confirm presence of the listed git commits; test with known format-string payloads in controlled environments to ensure crashes no longer occur.

Typical attack path

  1. Identify a target application accepting image uploads or filenames processed by ImageMagick
  2. Craft malicious input embedding format string specifiers in filename or metadata
  3. Trigger processing through InterpretImageFilename to invoke FormatLocaleString
  4. Achieve memory overwrite leading to control-flow hijacking or RCE
  5. Execute payload to establish persistence or exfiltrate data

How to detect it

Review application and system logs for calls to InterpretImageFilename or FormatLocaleString with unusual filename arguments; inspect image-processing service logs for segmentation faults or memory-corruption signals around image handling.

  • InterpretImageFilename
  • FormatLocaleString

What your security team should do

  • Immediately upgrade all ImageMagick instances to the patched versions
  • Scan codebases and containers for references to affected GIT revisions
  • Implement input sanitization or filename whitelisting around image processing paths
  • Monitor EPSS trend and reassess exploit maturity weekly

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
NuGet Magick.NET-Q16-AnyCPU 0 14.8.1
NuGet Magick.NET-Q16-HDRI-AnyCPU 0 14.8.1
NuGet Magick.NET-Q16-HDRI-OpenMP-arm64 0 14.8.1
NuGet Magick.NET-Q16-HDRI-OpenMP-x64 0 14.8.1
NuGet Magick.NET-Q16-HDRI-arm64 0 14.8.1
NuGet Magick.NET-Q16-HDRI-x64 0 14.8.1
NuGet Magick.NET-Q16-HDRI-x86 0 14.8.1
NuGet Magick.NET-Q16-OpenMP-arm64 0 14.8.1
NuGet Magick.NET-Q16-OpenMP-x64 0 14.8.1
NuGet Magick.NET-Q16-arm64 0 14.8.1
NuGet Magick.NET-Q16-x64 0 14.8.1
NuGet Magick.NET-Q16-x86 0 14.8.1
NuGet Magick.NET-Q8-AnyCPU 0 14.8.1
NuGet Magick.NET-Q8-OpenMP-arm64 0 14.8.1
NuGet Magick.NET-Q8-OpenMP-x64 0 14.8.1
NuGet Magick.NET-Q8-arm64 0 14.8.1
NuGet Magick.NET-Q8-x64 0 14.8.1
NuGet Magick.NET-Q8-x86 0 14.8.1
Debian:11 imagemagick 0 No fix
Debian:12 imagemagick 0 No fix
Debian:13 imagemagick 0 No fix
Debian:14 imagemagick 0 No fix
SUSE:Linux Enterprise Module for Desktop Applications 15 SP6 ImageMagick 0 7.1.1.21-150600.3.20.1
SUSE:Linux Enterprise Module for Desktop Applications 15 SP7 ImageMagick 0 7.1.1.43-150700.3.13.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 ImageMagick 0 7.1.1.21-150600.3.20.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7 ImageMagick 0 7.1.1.43-150700.3.13.1
openSUSE:Leap 15.6 ImageMagick 0 7.1.1.21-150600.3.20.1
openSUSE:Leap 16.0 ImageMagick 0 7.1.2.0-160000.4.1
openSUSE:Tumbleweed ImageMagick 0 7.1.2.2-2.1

Related vulnerabilities