CVE-2025-57803

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2 for ImageMagick's 32-bit build, a 32-bit integer overflow in the BMP encoder’s scanline-stride computation collapses bytes_per_line (stride) to a tiny value while the per-row writer still emits 3 × width bytes for 24-bpp images. The row base pointer advances using the (overflowed) stride, so the first row immediately writes past its slot and into adjacent heap memory with attacker-controlled bytes. This is a classic, powerful primitive for heap corruption in common auto-convert pipelines. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

History

02 Sep 2025, 18:10

Type Values Removed Values Added
References () https://github.com/ImageMagick/ImageMagick/commit/2c55221f4d38193adcb51056c14cf238fbcc35d7 - () https://github.com/ImageMagick/ImageMagick/commit/2c55221f4d38193adcb51056c14cf238fbcc35d7 - Patch
References () https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm - () https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm - Exploit, Vendor Advisory
References () https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1 - () https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1 - Release Notes
First Time Imagemagick
Imagemagick imagemagick
CPE cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*

29 Aug 2025, 16:22

Type Values Removed Values Added
Summary
  • (es) ImageMagick es un software gratuito y de código abierto que se utiliza para editar y manipular imágenes digitales. Antes de las versiones 6.9.13-28 y 7.1.2-2 de la compilación de 32 bits de ImageMagick, un desbordamiento de entero de 32 bits en el cálculo del paso de línea de escaneo del codificador BMP reducía el valor de bytes_per_line (paso) a un valor minúsculo, mientras que el escritor por fila seguía emitiendo 3 bytes de ancho para imágenes de 24 bpp. El puntero de base de fila avanza utilizando el paso (desbordado), por lo que la primera fila escribe inmediatamente más allá de su ranura y en la memoria del montón adyacente con bytes controlados por el atacante. Esta es una primitiva clásica y potente para la corrupción del montón en las canalizaciones de autoconversión comunes. Este problema se ha corregido en las versiones 6.9.13-28 y 7.1.2-2.

26 Aug 2025, 21:15

Type Values Removed Values Added
References () https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm - () https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mxvv-97wh-cfmm -

26 Aug 2025, 18:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-08-26 18:15

Updated : 2025-09-02 18:10


NVD link : CVE-2025-57803

Mitre link : CVE-2025-57803

CVE.ORG link : CVE-2025-57803


JSON object : View

Products Affected

imagemagick

  • imagemagick
CWE
CWE-122

Heap-based Buffer Overflow

CWE-190

Integer Overflow or Wraparound