ImageMagick has Global Buffer Overflow (OOB Read) via Negative Pixel Index in UIL and XPM Writer
Moderate severity
GitHub Reviewed
Published
Feb 23, 2026
in
ImageMagick/ImageMagick
•
Updated Feb 24, 2026
Description
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
The UIL and XPM image encoder do not validate the pixel index value returned by
GetPixelIndex()before using it as an array subscript. In HDRI builds,Quantumis a floating-point type, so pixel index values can be negative. An attacker can craft an image with negative pixel index values to trigger a global buffer overflow read during conversion, leading to information disclosure or a process crash.References