CVE-2026-25794: ImageMagick has heap-buffer-overflow via signed integer overflow in `WriteUHDRImage` when writing UHDR images with large dimensions
ImageMagick is free and open-source software used for editing and manipulating digital images. `WriteUHDRImage` in `coders/uhdr.c` uses `int` arithmetic to compute the pixel buffer size. Prior to version 7.1.2-15, when image dimensions are large, the multiplication overflows 32-bit `int`, causing an undersized heap allocation followed by an out-of-bounds write. This can crash the process or potentially lead to an out of bounds heap write. Version 7.1.2-15 contains a patch.
Security readout for executives and security teams
Plain-English summary
ImageMagick before 7.1.2-15 can allocate too small a heap buffer when writing very large UHDR images, then write past it. For businesses, the main concern is service disruption in systems that process attacker-controlled images; the source also notes a potential out-of-bounds heap write.
Executive priority
Prioritize remediation for internet-facing or partner-facing image processing services. The business risk is primarily outage or processing service instability, with some memory-corruption uncertainty. Internal-only, tightly controlled conversion jobs are lower priority but should still be updated during normal patch cycles.
Technical view
In coders/uhdr.c, WriteUHDRImage uses 32-bit int arithmetic for pixel buffer size calculation. Large dimensions can trigger signed integer overflow, causing undersized allocation and heap out-of-bounds writes. The CVSS 3.1 score is 8.2, with network attack vector, low complexity, no privileges, no user interaction, low confidentiality impact, and high availability impact.
Likely exposure
Exposure is most likely where ImageMagick below 7.1.2-15 processes or writes UHDR images from untrusted or semi-trusted inputs, including upload pipelines, media conversion services, thumbnailers, and back-end batch processors. Downstream Linux packages may need vendor-specific status checks.
Exploitation context
The provided sources do not establish active exploitation, public weaponization, or KEV listing. The vulnerability is remotely reachable in the CVSS assessment when a service accepts suitable image-processing input, but the bundle only supports crash or potential heap write impact, not confirmed code execution.
Researcher notes
Key evidence is the ImageMagick advisory description, CVSS vector, affected version range, and fixed release. No source in the bundle confirms exploit-in-the-wild activity, a public proof of concept, or reliable code execution. Validation should focus on version provenance and whether UHDR writing is reachable from untrusted inputs.
Mitigation direction
Upgrade ImageMagick to version 7.1.2-15 or later where available.
Check distribution vendor advisories for backported fixes and affected package status.
Restrict untrusted image conversion workflows until patched, especially UHDR output paths.
Apply image dimension and resource limits for upload and conversion services.
Monitor ImageMagick and Linux vendor guidance for any revised remediation details.
Validation and detection
Inventory applications, containers, and jobs that include ImageMagick.
Confirm installed or bundled ImageMagick versions are 7.1.2-15 or patched builds.
Identify workflows that write UHDR images from user-controlled input.
Review package vendor notices for backport status and fixed build identifiers.
Verify operational image size limits are enforced in exposed conversion paths.
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.
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.
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.
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.
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.
Integer Overflow or Wraparound represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.