{"id":"CVE-2026-25794","published":"2026-02-24T00:53:23Z","modified":"2026-07-15T01:15:58Z","title":"ImageMagick has heap-buffer-overflow via signed integer overflow in `WriteUHDRImage` when writing UHDR images with…","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"ImageMagick is free and open-source software used for editing and manipulating digital images. `WriteUHDRImage` in `coders/uhdr.c` uses `int` arithmetic to compute the pixel buffer size. Prior to version 7.1.2-15, when image dimensions are large, the multiplication overflows 32-bit `int`, causing an undersized heap allocation followed by an out-of-bounds write. This can crash the process or potentially lead to an out of bounds heap write. Version 7.1.2-15 contains a patch.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00705,"percentile":0.48943,"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-vhqj-f5cj-9x8h","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25794","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442110","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25794.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":9.79},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":["< 7.1.2-15"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-26T15:04:46.335773Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-x64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-arm64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x86","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-vhqj-f5cj-9x8h"],"provenance":"source"}],"summary":{"text":"The flaw is a heap buffer overflow in ImageMagick's WriteUHDRImage function in coders/uhdr.c, caused by 32-bit signed integer overflow when computing the pixel buffer size for large image dimensions. An attacker with network access and no privileges or user interaction, who can get ImageMagick to write a UHDR image with large dimensions, can trigger an undersized heap allocation followed by an out-of-bounds write, which can crash the process or potentially lead to an out-of-bounds heap write.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:26Z"},"euvd":{"id":"EUVD-2026-7448","exploited":false,"provenance":"source"}}