Skip to content

ImageMagick has heap-buffer-overflow via signed integer overflow in WriteUHDRImage when writing UHDR images with large dimensions

High severity GitHub Reviewed Published Feb 23, 2026 in ImageMagick/ImageMagick • Updated Feb 24, 2026

Package

nuget Magick.NET-Q16-AnyCPU (NuGet)

Affected versions

< 14.10.3

Patched versions

14.10.3
nuget Magick.NET-Q16-HDRI-AnyCPU (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-HDRI-arm64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-HDRI-x64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-HDRI-x86 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-OpenMP-arm64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-OpenMP-x64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-OpenMP-x86 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-arm64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-x64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q16-x86 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q8-AnyCPU (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q8-OpenMP-arm64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q8-OpenMP-x64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q8-arm64 (NuGet)
< 14.10.3
14.10.3
nuget Magick.NET-Q8-x64 (NuGet)
< 14.10.3
114.10.3
nuget Magick.NET-Q8-x86 (NuGet)
< 14.10.3
14.10.3

Description

WriteUHDRImage in coders/uhdr.c uses int arithmetic to compute the pixel buffer size. 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.

==1575126==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fc382ef3820 at pc 0x5560d31f229f bp 0x7ffe865f9530 sp 0x7ffe865f9520
WRITE of size 8 at 0x7fc382ef3820 thread T0
    #0 0x5560d31f229e in WriteUHDRImage coders/uhdr.c:807

References

@dlemstra dlemstra published to ImageMagick/ImageMagick Feb 23, 2026
Published by the National Vulnerability Database Feb 24, 2026
Published to the GitHub Advisory Database Feb 24, 2026
Reviewed Feb 24, 2026
Last updated Feb 24, 2026

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H

EPSS score

Weaknesses

Heap-based Buffer Overflow

A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc(). Learn more on MITRE.

Integer Overflow or Wraparound

The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number. Learn more on MITRE.

CVE ID

CVE-2026-25794

GHSA ID

GHSA-vhqj-f5cj-9x8h

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.