CVE-2025-55298

7.5

ImageMagick · ImageMagick

A format string vulnerability in the InterpretImageFilename function of ImageMagick allows attackers to overwrite memory, potentially leading to remote code execution.

Executive summary

A critical format string vulnerability in ImageMagick allows authenticated attackers to potentially execute arbitrary code on the host system.

Vulnerability

The application fails to sanitize user input before passing it to the FormatLocaleString function within the InterpretImageFilename component, leading to a format string vulnerability (CWE-134). An attacker with low privileges can leverage this flaw to perform arbitrary memory writes, enabling escalation to remote code execution.

Business impact

The ability to achieve remote code execution poses a severe risk to organizational infrastructure, as it grants attackers the capability to compromise sensitive data, disrupt operations, or gain persistent access to the network. While the CVSS score of 7.5 reflects a high severity, the potential for total technical impact and the inherent risk of memory corruption vulnerabilities necessitate immediate attention to protect critical assets.

Remediation

Immediate Action: Update ImageMagick to version 7.1.2-2 or 6.9.13-28, or update associated packages like Magick.NET to 14.8.1, to incorporate the necessary memory sanitization fixes.

Proactive Monitoring: Monitor server logs for unusual image processing activities, memory spikes, or unexpected process terminations that may indicate exploitation attempts.

Compensating Controls: Deploy a Web Application Firewall (WAF) configured to inspect image upload parameters and filter out suspicious character sequences associated with format string injection.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

The presence of a proof-of-concept and the severity of the underlying memory corruption flaw make this a high-priority update. Administrators should prioritize patching all instances of ImageMagick within their environments to the specified secure versions to eliminate the risk of remote compromise.

More ImageMagick CVEs

Sources