{"id":"CVE-2026-30937","published":"2026-03-09T21:50:15Z","modified":"2026-03-10T14:34:52Z","title":"ImageMagick has a heap buffer overflow in WriteXWDImage due to CARD32 arithmetic overflow in bytes_per_line calculation","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00116,"percentile":0.01673,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-qpg4-j99f-8xcg","tags":["x_refsource_CONFIRM"]}],"priority":{"score":5.1,"factors":[{"name":"EPSS percentile","points":0.33},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":[">= 7.0.0, < 7.1.2-16","< 6.9.13-41"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-10T14:34:45.797676Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-arm64","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x86","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.10.4"],"patched":["14.10.4"],"from":["GHSA-qpg4-j99f-8xcg"],"provenance":"source"}],"summary":{"text":"ImageMagick's XWD (X Windows) image encoder, in the WriteXWDImage routine, contains a heap buffer overflow caused by a 32-bit unsigned integer overflow in its bytes_per_line calculation, which can produce an undersized heap allocation. An attacker with local access and no privileges can trigger an out-of-bounds heap write by having ImageMagick write an extremely large image in XWD format, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:35Z"},"euvd":{"id":"EUVD-2026-10402","exploited":false,"provenance":"source"}}