# CVE-2025-62594: ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-27T20:00:33.205Z
- Modified: 2026-10-19T13:10:00.110Z
- Also known as: GHSA-wpp4-vqfq-v4hp
- Weaknesses: CWE-119, CWE-191, CWE-369
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ImageMagick ImageMagick: < 7.1.2-8; before 7.1.2-8
- Magick.NET-Q16-x64 (NuGet): up to 14.9.0
- Magick.NET-Q8-x64 (NuGet): up to 14.9.0
- Magick.NET-Q16-HDRI-x64 (NuGet): up to 14.9.0
- Magick.NET-Q8-OpenMP-x64 (NuGet): up to 14.9.0
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): up to 14.9.0
- Magick.NET-Q16-OpenMP-x64 (NuGet): up to 14.9.0
- Magick.NET-Q8-arm64 (NuGet): up to 14.9.0
- Magick.NET-Q16-arm64 (NuGet): up to 14.9.0
- Magick.NET-Q16-OpenMP-arm64 (NuGet): up to 14.9.0
- Magick.NET-Q8-OpenMP-arm64 (NuGet): up to 14.9.0
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): up to 14.9.0
- Magick.NET-Q16-HDRI-arm64 (NuGet): up to 14.9.0

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-wpp4-vqfq-v4hp> (exploit, vendor-advisory, web)
- <https://github.com/ImageMagick/ImageMagick/commit/7b47fe369eda90483402fcd3d78fa4167d3bb129> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62594> (advisory)
- <https://github.com/ImageMagick/ImageMagick> (package)

## Sources

- CVE List: [CVE-2025-62594](https://www.cve.org/CVERecord?id=CVE-2025-62594), CVE Terms of Use, modified 2025-10-27
- GitHub Advisory Database: [GHSA-wpp4-vqfq-v4hp](https://github.com/advisories/GHSA-wpp4-vqfq-v4hp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-62594](https://nvd.nist.gov/vuln/detail/CVE-2025-62594), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-62594 · Whole record: https://cve.day/CVE-2025-62594.json · Rebuilt by cve.day 2026-11-25T22:59:06.901Z
