cve.bz

CVE-2025-62594 imagemagick imagemagick: Integer Underflow (Wrap or Wraparound)

5.5 mediumExploit referenceEPSS 0.4%Fix available

Medium (5.5) in imagemagick imagemagick. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 31st percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-10-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-191 Integer Underflow (Wrap or Wraparound)
CWE-369 Divide By Zero
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-62594 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-62594?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-62594?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-62594 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2025-62594

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2025-62594](https://cve.bz/cve/badge/CVE-2025-62594.svg)](https://cve.bz/cve/CVE-2025-62594)

HTML:

<a href="https://cve.bz/cve/CVE-2025-62594"><img src="https://cve.bz/cve/badge/CVE-2025-62594.svg" alt="CVE-2025-62594"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
imagemagick:imagemagickbefore 7.1.2-8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-x64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q8-x64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-HDRI-x64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q8-OpenMP-x64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-HDRI-OpenMP-x64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-OpenMP-x64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q8-arm64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-arm64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-OpenMP-arm64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q8-OpenMP-arm64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-HDRI-OpenMP-arm64<=14.9.0no fix published
GHSA-wpp4-vqfq-v4hpNuGetMagick.NET-Q16-HDRI-arm64<=14.9.0no fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13imagemagick8:7.1.1.43+dfsg1-1+deb13u4DEBIAN-CVE-2025-62594
Debian14imagemagick8:7.1.2.8+dfsg1-1DEBIAN-CVE-2025-62594
Ubuntu25.10imagemagickno fix listedUBUNTU-CVE-2025-62594
Ubuntu26.04:LTSimagemagick8:7.1.2.8+dfsg1-1UBUNTU-CVE-2025-62594
SUSELinux Enterprise Module for Desktop Applications 15 SP6, Linux Enterprise Module for Desktop Applications 15 SP7ImageMagick7.1.0.9-150400.6.51.1SUSE-SU-2025:3985-1
SUSELinux Enterprise Module for Desktop Applications 15 SP6, Linux Enterprise Module for Development Tools 15 SP6ImageMagick7.1.1.21-150600.3.29.1SUSE-SU-2025:3978-1
SUSELinux Enterprise Module for Desktop Applications 15 SP7, Linux Enterprise Module for Development Tools 15 SP7ImageMagick7.1.1.43-150700.3.22.1SUSE-SU-2025:3956-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0ImageMagick7.1.2.0-160000.4.1SUSE-SU-2025:21211-1
openSUSELeap 15.6ImageMagick7.1.1.21-150600.3.29.1SUSE-SU-2025:3978-1
openSUSELeap 16.0ImageMagick7.1.2.0-160000.4.1openSUSE-SU-2025:20162-1
openSUSETumbleweedImageMagick7.1.2.8-1.1openSUSE-SU-2025:15685-1
Alpinev3.22, v3.23, v3.24imagemagick7.1.2.8-r0ALPINE-CVE-2025-62594

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate because its primary impact is limited to denial-of-service (DoS) rather than data compromise or code execution. Although the flaw involves unsafe pointer arithmetic and division-by-zero conditions, the exploitability is constrained — it requires user interaction or crafted input (e.g., using -clahe 0x0! or very small images) to trigger. The resulting outcome is typically a process crash or resource exhaustion without any proven path to memory corruption exploitation or remote code execution. Moreover, the issue occurs in a non-default processing path (CLAHE filter), reducing its overall exposure. Therefore, despite the presence of out-of-bounds behavior, the lack of confidentiality or integrity impact justifies a Moderate rather than Important severity rating.

Red Hat's mitigation

No mitigation is currently available that meets Red Hat Product Security’s standards for usability, deployment, applicability, or stability.

The risk can be reduced by disabling or restricting the use of the CLAHE feature in environments that process untrusted images. Administrators can update policy.xml or application logic to block the -clahe option, reject inputs specifying zero or very small tile dimensions, and enforce strict memory and CPU limits on ImageMagick processes.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6ImageMagickFix deferred
Red Hat Enterprise Linux 7ImageMagickFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-62594.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON