Skip to main content
Public proof of conceptFix available

CVE-2025-55298

A public proof of concept exists; no exploitation attested.

  • Published2025-08-26
  • Fixed in7.1.2-2 · 6.9.13-28
  • WeaknessCWE-123 · CWE-134

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-08-2618:15CVE publishedNVD

Versions per branch

NVD · OSV
Imagemagick
BranchAffectedFixed in
7.x≥ 7.0.0-0, < 7.1.2-27.1.2-2
6.9< 6.9.13-286.9.13-28
Magick.NET-Q16-AnyCPU
BranchAffectedFixed in
14.8< 14.8.114.8.1
Magick.NET-Q16-arm64
BranchAffectedFixed in
14.8< 14.8.114.8.1

16 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • ImageMagick
    Affected
    • = < 7.1.2-2no fix stated
    • = < 6.9.13-28no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-08-26

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • imagemagickUbuntu:Pro:24.04:LTSall versions · fixed in 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm3
  • imagemagickUbuntu:Pro:22.04:LTSall versions · fixed in 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm4
  • imagemagickUbuntu:Pro:20.04:LTSall versions · fixed in 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm4
  • imagemagickUbuntu:Pro:18.04:LTSall versions · fixed in 8:6.9.7.4+dfsg-16ubuntu6.15+esm6
  • imagemagickUbuntu:Pro:16.04:LTSall versions · fixed in 8:6.8.9.9-7ubuntu5.16+esm14
  • imagemagickUbuntu:Pro:14.04:LTSall versions · fixed in 8:6.7.7.10-6ubuntu3.13+esm15
  • imagemagickTuxCare:Ubuntu:20.04all versions · fixed in 8:6.9.10.23+dfsg-2.1ubuntu11.11+tuxcare.els5and 31 other packages
  • imagemagickTuxCare:Debian:10all versions · fixed in 8:6.9.10.23+dfsg-2.1+deb10u7+tuxcare.els2and 31 other packages

39 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-55298 Red Hat Product Security7 known affected

    ImageMagick: ImageMagick Format String Bug in InterpretImageFilename leads to arbitrary code execution

    ImageMagick as a component of Red Hat Enterprise Linux 6 · ImageMagick-c++ as a component of Red Hat Enterprise Linux 6 · ImageMagick-c++-devel as a component of Red Hat Enterprise Linux 6 · +4 more

Full record on NVD

Fix

  1. Update Imagemagick to 7.1.2-2 · 6.9.13-28
  2. Workaround from the vendor Red Hat Product Security CVE-2025-55298 · 7 productsTo prevent unintended interpretation of the filename as a format string, users can explicitly disable format string parsing by defining the filename as a literal. This can be done using the following directive: In wrappers: filename:literal From the command line: -define filename:literal=true
  3. No fix planned, says the vendor Red Hat Product Security CVE-2025-55298 · 7 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-08-26
  • CNACVSS 3.17.5known since 2026-10-23
  • NVDCVSS 3.18.8read 2026-10-23
  • CNAweakness (CWE)CWE-123, CWE-134known since 2026-10-23
  • FIRST EPSSEPSS score4.7 %2026-11-08
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2025-08-26

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
2025-08-26
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-9ccg-6pjw-x645

Frequently asked questions

What is CVE-2025-55298?

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.

Is CVE-2025-55298 actively exploited?

A proof-of-concept exploit exists for CVE-2025-55298, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-55298?

CVE-2025-55298 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Running ImageMagick? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record