CVE-2026-30937
MEDIUM6.8EPSS 0.02%ImageMagick has heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation
Published: 3/12/2026Modified: 4/28/2026
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.
Affected packages (20)
- Debian/imagemagickfrom 0, < 8:6.9.11.60+dfsg-1.3+deb11u11
- NuGet/Magick.NET-Q16-AnyCPUfrom 0, < 14.10.4
- NuGet/Magick.NET-Q16-arm64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-HDRI-AnyCPUfrom 0, < 14.10.4
- NuGet/Magick.NET-Q16-HDRI-arm64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-HDRI-OpenMP-arm64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-HDRI-OpenMP-x64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-HDRI-x64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-HDRI-x86from 0, < 14.10.4
- NuGet/Magick.NET-Q16-OpenMP-arm64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-OpenMP-x64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-OpenMP-x86from 0, < 14.10.4
- NuGet/Magick.NET-Q16-x64from 0, < 14.10.4
- NuGet/Magick.NET-Q16-x86from 0, < 14.10.4
- NuGet/Magick.NET-Q8-AnyCPUfrom 0, < 14.10.4
- NuGet/Magick.NET-Q8-arm64from 0, < 14.10.4
- NuGet/Magick.NET-Q8-OpenMP-arm64from 0, < 14.10.4
- NuGet/Magick.NET-Q8-OpenMP-x64from 0, < 14.10.4
- NuGet/Magick.NET-Q8-x64from 0, < 14.10.4
- NuGet/Magick.NET-Q8-x86from 0, < 14.10.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H |