LiveActive security incident?Get immediate response
CVE Record

CVE-2026-25897: ImageMagick has heap overflow in sun decoder on 32-bit systems that can result in out of bounds write

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, an Integer Overflow vulnerability exists in the sun decoder. On 32-bit systems/builds, a carefully crafted image can lead to an out of bounds heap write. Versions 7.1.2-15 and 6.9.13-40 contain a patch.

MediumCVSS 6.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

ImageMagick has a medium-severity flaw in its SUN image decoder affecting vulnerable 32-bit builds. A specially crafted image can cause a heap out-of-bounds write, with likely impact to availability and limited confidentiality. Patched versions are available: 7.1.2-15 and 6.9.13-40.

Executive priority

Treat as a targeted remediation item, not an emergency. Prioritize internet-facing or partner-facing image-processing workflows, especially on 32-bit environments. Patch during the next appropriate maintenance window unless the service handles high volumes of untrusted images.

Technical view

CVE-2026-25897 is an integer overflow in ImageMagick’s sun decoder that can lead to an out-of-bounds heap write on 32-bit systems/builds. Affected versions are ImageMagick 7 before 7.1.2-15 and 6 before 6.9.13-40. CVSS 3.1 is 6.5 with high attack complexity and no required privileges.

Likely exposure

Exposure is most relevant where ImageMagick processes untrusted or externally supplied SUN image files on 32-bit systems or 32-bit builds. Common risk areas include image upload, conversion, thumbnailing, and automated media-processing pipelines.

Exploitation context

The source bundle does not indicate active exploitation, and KEV status is false. Exploitation requires a carefully crafted image and appears limited to 32-bit systems/builds. The advisory rates attack complexity as high, but network attack vector and no privileges increase concern for exposed processing services.

Researcher notes

Evidence is limited to the CVE record and GitHub advisory. The issue is specifically described as a SUN decoder integer overflow causing heap out-of-bounds write on 32-bit systems/builds. No public exploit status, workaround, or broader platform impact is provided in the supplied sources.

Mitigation direction

  • Upgrade ImageMagick 7.x to 7.1.2-15 or later.
  • Upgrade ImageMagick 6.x to 6.9.13-40 or later.
  • Prioritize systems processing untrusted images or internet-submitted files.
  • If immediate upgrade is not possible, check ImageMagick vendor guidance for supported mitigations.
  • Restrict untrusted SUN image processing where operationally feasible.

Validation and detection

  • Inventory ImageMagick installations and identify 6.x or 7.x version lines.
  • Confirm whether deployments use 32-bit systems or 32-bit ImageMagick builds.
  • Identify services that process untrusted or externally uploaded images.
  • Verify upgraded systems report patched ImageMagick versions.
  • Review image-processing logs for crashes involving SUN image decoding.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-122: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-25897 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.5CVSS 3.1MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H2.24.2Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.5Medium
CVSS 3.1 vector shape for CVE-2026-25897Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
ImageMagickImageMagick>= 7.0.0, < 7.1.2-15, < 6.9.13-40Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-122 · source CWE mapping

Heap-based Buffer Overflow

Heap-based Buffer Overflow represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.