Vulnerabilities

CVE-2025-57803

High 8.8 CVSS 3.1

Description

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.

Description as published by the source, in English.

Key facts

Published
2025-08-26
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.8 % higher than 54 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Magick.NET-Q16-AnyCPU (NuGet) < 14.8.1 Affected
Magick.NET-Q16-HDRI-AnyCPU (NuGet) < 14.8.1 Affected
Magick.NET-Q16-HDRI-x86 (NuGet) < 14.8.1 Affected
Magick.NET-Q16-x86 (NuGet) < 14.8.1 Affected
Magick.NET-Q8-AnyCPU (NuGet) < 14.8.1 Affected
Magick.NET-Q8-x86 (NuGet) < 14.8.1 Affected
Imagemagick Imagemagick < 6.9.13-28 Affected
Imagemagick Imagemagick ≥ 7.0.0-0, < 7.1.2-2 Affected

Weakness type

  • CWE-122: Heap-based Buffer Overflow

    The product writes past the end of a buffer that was allocated on the heap.

  • CWE-190: 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 i…

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities