CVE-2026-30937

ImageMagick has a heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation

State
Published
Severity
6.8 Medium
Published
Mar 9, 2026
Updated
Mar 10, 2026
Reserved
Mar 7, 2026

Read the record on cve.org

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-16 and 6.9.13-41, a 32-bit unsigned integer overflow in the XWD (X Windows) encoder can cause an undersized heap buffer allocation. When writing a extremely large image an out of bounds heap write can occur. This vulnerability is fixed in 7.1.2-16 and 6.9.13-41.

Scores

CVSSScoreVectorSource
3.16.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:HGitHub_M

Weaknesses

  • CWE-122 Heap-based Buffer Overflow
  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
ImageMagickImageMagick
  • >= 7.0.0, < 7.1.2-16Affected
  • < 6.9.13-41Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.