Use of Externally-Controlled Format String Affecting imagemagick package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.18% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of Externally-Controlled Format String vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-IMAGEMAGICK-12215555
  • published28 Aug 2025
  • disclosed26 Aug 2025
  • creditWoojin Park, Hojun Lee, Youngin Won, Siyeon Han

Introduced: 26 Aug 2025

NewCVE-2025-55298  (opens in a new tab)
CWE-134  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Use of Externally-Controlled Format String via the InterpretImageFilename function, where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can execute arbitrary code or cause a heap-based buffer over-read by supplying a crafted filename containing format specifiers. This is only exploitable if format string parsing is enabled for filenames.

Workaround

This vulnerability can be mitigated by explicitly disabling format string parsing and defining the filename as a literal, either by using the directive 'filename:literal' in wrappers or '-define filename:literal=true' from the command line.

CVSS Base Scores

version 4.0
version 3.1