Vulnerability · Published Oct 27, 2025 · Assigned by GitHub_M
CVE-2025-62594ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)
Medium 4.7
In plain English
A medium-severity memory corruption in ImageMagick from ImageMagick. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
ImageMagick is a software suite to create, edit, compose, or convert bitmap images. ImageMagick versions prior to 7.1.2-8 are vulnerable to denial-of-service due to unsigned integer underflow and division-by-zero in the CLAHEImage function. When tile width or height is zero, unsigned underflow occurs in pointer arithmetic, leading to out-of-bounds memory access, and division-by-zero causes immediate crashes. This issue has been patched in version 7.1.2-8.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | imagemagick | 7.1.2.8-r0 | ALPINE-CVE-2025-62594 |
| Alpine:v3.23 | imagemagick | 7.1.2.8-r0 | ALPINE-CVE-2025-62594 |
| Alpine:v3.24 | imagemagick | 7.1.2.8-r0 | ALPINE-CVE-2025-62594 |
| Debian:13 | imagemagick | 8:7.1.1.43+dfsg1-1+deb13u4 | DEBIAN-CVE-2025-62594 |
| Debian:14 | imagemagick | 8:7.1.2.8+dfsg1-1 | DEBIAN-CVE-2025-62594 |
| NuGet | magick.net-q16-arm64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q16-hdri-arm64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q16-hdri-openmp-arm64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q16-hdri-openmp-x64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q16-hdri-x64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q16-openmp-arm64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q16-openmp-x64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q16-x64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q8-arm64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q8-openmp-arm64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q8-openmp-x64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| NuGet | magick.net-q8-x64 | no fix listed | GHSA-wpp4-vqfq-v4hp |
| Ubuntu:25.10 | imagemagick | no fix listed | UBUNTU-CVE-2025-62594 |
| Ubuntu:26.04:LTS | imagemagick | 8:7.1.2.8+dfsg1-1 | UBUNTU-CVE-2025-62594 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ImageMagick | ImageMagick | < 7.1.2-8 |
Weakness: CWE-119, CWE-369, CWE-191 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H