CVE-2025-62594
ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
4.7
ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)
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.
- Record
CVE-2025-62594- 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 - Weakness
- CWE-119, CWE-369, CWE-191
- Updated
- 2026-11-02
EUVDEUVD-2025-36365
4.7
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.
- Record
EUVD-2025-36365- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-wpp4-vqfq-v4hp
4.7
ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)
Summary
A single root cause in the CLAHE implementation — tile width/height becoming zero — produces two distinct but related unsafe behaviors.
Vulnerabilities exists in the CLAHEImage() function of ImageMagick’s MagickCore/enhance.c.
- Unsigned integer underflow → out-of-bounds pointer arithmetic (OOB): when
tile_info.height == 0, the expressiontile_info.height - 1(unsigned) wraps to a very large value; using that value in pointer arithmetic yields a huge offset and OOB memory access (leading to memory corruption, SIGSEGV, or resource exhaustion). - Division/modulus by zero: where code performs
... / tile_info.widthor... % tile_info.heightwithout re-checking for zero, causing immediate division-by-zero crashes under sanitizers orabortat runtime.
Both behaviors are triggered by the same invalid tile condition (e.g., CLI exact -clahe 0x0! or automatic tile derivation dim >> 3 == 0 for very small images).
Details
Unsigned underflow(can lea to OOB)
-
Location:
MagickCore/enhance.c, around line 609 -
Version tested: 7.1.2-8 (local ASan(undefined). /UBSan build)
-
Vulnerable code
enhance.c: 609
p += (ptrdiff_t) clahe_info->width * (tile.height - 1); -
Root Cause
- If
tile.height == 0, then(tile.height - 1)underflows toUINT_MAX. - Multiplication with
clahe_info->widthyields a huge value close toSIZE_MAX. - Adding this to
pcauses pointer arithmetic underflow.
- If
Division-by-zero
-
File / Location:
MagickCore/enhance.c, around line 669 -
Version tested: 7.1.2-8 (local ASan(undefined). /UBSan build)
-
vulnerable code
enhance.c: 669-673
if ((image->columns % tile_info.width) != 0) tile_info.x=(ssize_t) (tile_info.width-(image->columns % tile_info.width)); tile_info.y=0; if ((image->rows % tile_info.height) != 0) tile_info.y=(ssize_t) (tile_info.height-(image->rows % tile_info.height)); -
Root cause
Missing input validation / bounds checks after computing default tile dimensions:
If either
tile_info.widthortile_info.heightis 0, this triggers a division by zero. Zeros can reach this point through:- Exact tiles: CLI
clahe 0x0!(the!forces zero to be used verbatim). - Auto tiles on tiny images: When a requested tile is
0(no!), the code derives a default from the image size (e.g.,dim >> 3). For images withdim < 8, this result is 0 unless clamped.
- Exact tiles: CLI
Reproduction
Unsigned underflow
Environment
Built with AddressSanitizer and UndefinedBehaviorSanitizer enabled.
export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1
export ASAN_OPTIONS=abort_on_error=1:allocator_may_return_null=1:detect_leaks=0
Command
./magick xc:black -clahe 0x0 null:
Output
MagickCore/enhance.c:609:6: runtime error: addition of unsigned offset overflowed
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior MagickCore/enhance.c:609:6 in CLAHEImage
./magick -size 10x10 xc:black -clahe 0x0 null:
<img width="1068" height="64" alt="image" src="https://github.com/user-attachments/assets/cd9637ee-1d03-4066-834d-fda22410dd8b" />
memory region corruption.
./magick -size 2000x2000 xc:black -clahe 0x0 null:
<img width="1069" height="70" alt="image" src="https://github.com/user-attachments/assets/ecbab79c-a3c2-4e8c-96c9-8e2aa8f0d2b2" />
→ Significant memory consumption and evidence of memory region corruption.
./magick -size 4000x4000 xc:black -clahe 0x0 null:
<img width="776" height="49" alt="image" src="https://github.com/user-attachments/assets/63a7cec5-616b-4aa5-87f3-a546a87e6625" />
→ Much larger memory usage; process appears to be aggressively consuming cache and address space.
./magick -size 8000x8000 xc:black -clahe 0x0 null:
<img width="748" height="46" alt="image"…
- Record
GHSA-wpp4-vqfq-v4hp- 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 - Weakness
- CWE-119, CWE-191, CWE-369
- Updated
- 2026-11-02
NVD
4.7
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.
- Record
CVE-2025-62594- 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 - 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 - Weakness
- CWE-119, CWE-191, CWE-369
- Updated
- 2026-11-02
OSVALPINE-CVE-2025-62594
5.5
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.
- Record
ALPINE-CVE-2025-62594- 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 - Updated
- 2026-11-03
OSV
4.7
ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)
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.
- Record
CVE-2025-62594- 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 - Weakness
- CWE-119, CWE-191, CWE-369
- Updated
- 2026-11-02
Show 16 moreShow less
OSVDEBIAN-CVE-2025-62594
5.5
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.
- Record
DEBIAN-CVE-2025-62594- 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 - Updated
- 2026-11-02
OSVGHSA-wpp4-vqfq-v4hp
4.7
ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)
Summary
A single root cause in the CLAHE implementation — tile width/height becoming zero — produces two distinct but related unsafe behaviors.
Vulnerabilities exists in the CLAHEImage() function of ImageMagick’s MagickCore/enhance.c.
- Unsigned integer underflow → out-of-bounds pointer arithmetic (OOB): when
tile_info.height == 0, the expressiontile_info.height - 1(unsigned) wraps to a very large value; using that value in pointer arithmetic yields a huge offset and OOB memory access (leading to memory corruption, SIGSEGV, or resource exhaustion). - Division/modulus by zero: where code performs
... / tile_info.widthor... % tile_info.heightwithout re-checking for zero, causing immediate division-by-zero crashes under sanitizers orabortat runtime.
Both behaviors are triggered by the same invalid tile condition (e.g., CLI exact -clahe 0x0! or automatic tile derivation dim >> 3 == 0 for very small images).
Details
Unsigned underflow(can lea to OOB)
-
Location:
MagickCore/enhance.c, around line 609 -
Version tested: 7.1.2-8 (local ASan(undefined). /UBSan build)
-
Vulnerable code
enhance.c: 609
p += (ptrdiff_t) clahe_info->width * (tile.height - 1); -
Root Cause
- If
tile.height == 0, then(tile.height - 1)underflows toUINT_MAX. - Multiplication with
clahe_info->widthyields a huge value close toSIZE_MAX. - Adding this to
pcauses pointer arithmetic underflow.
- If
Division-by-zero
-
File / Location:
MagickCore/enhance.c, around line 669 -
Version tested: 7.1.2-8 (local ASan(undefined). /UBSan build)
-
vulnerable code
enhance.c: 669-673
if ((image->columns % tile_info.width) != 0) tile_info.x=(ssize_t) (tile_info.width-(image->columns % tile_info.width)); tile_info.y=0; if ((image->rows % tile_info.height) != 0) tile_info.y=(ssize_t) (tile_info.height-(image->rows % tile_info.height)); -
Root cause
Missing input validation / bounds checks after computing default tile dimensions:
If either
tile_info.widthortile_info.heightis 0, this triggers a division by zero. Zeros can reach this point through:- Exact tiles: CLI
clahe 0x0!(the!forces zero to be used verbatim). - Auto tiles on tiny images: When a requested tile is
0(no!), the code derives a default from the image size (e.g.,dim >> 3). For images withdim < 8, this result is 0 unless clamped.
- Exact tiles: CLI
Reproduction
Unsigned underflow
Environment
Built with AddressSanitizer and UndefinedBehaviorSanitizer enabled.
export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1
export ASAN_OPTIONS=abort_on_error=1:allocator_may_return_null=1:detect_leaks=0
Command
./magick xc:black -clahe 0x0 null:
Output
MagickCore/enhance.c:609:6: runtime error: addition of unsigned offset overflowed
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior MagickCore/enhance.c:609:6 in CLAHEImage
./magick -size 10x10 xc:black -clahe 0x0 null:
<img width="1068" height="64" alt="image" src="https://github.com/user-attachments/assets/cd9637ee-1d03-4066-834d-fda22410dd8b" />
memory region corruption.
./magick -size 2000x2000 xc:black -clahe 0x0 null:
<img width="1069" height="70" alt="image" src="https://github.com/user-attachments/assets/ecbab79c-a3c2-4e8c-96c9-8e2aa8f0d2b2" />
→ Significant memory consumption and evidence of memory region corruption.
./magick -size 4000x4000 xc:black -clahe 0x0 null:
<img width="776" height="49" alt="image" src="https://github.com/user-attachments/assets/63a7cec5-616b-4aa5-87f3-a546a87e6625" />
→ Much larger memory usage; process appears to be aggressively consuming cache and address space.
./magick -size 8000x8000 xc:black -clahe 0x0 null:
<img width="748" height="46" alt="image"…
- Record
GHSA-wpp4-vqfq-v4hp- 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 - Weakness
- CWE-119, CWE-191, CWE-369
- Updated
- 2026-11-02
OSVJLSEC-2026-928
5.5
ImageMagick CLAHE : Unsigned underflow and division-by-zero lead to OOB pointer arithmetic and process crash (DoS)
Summary
A single root cause in the CLAHE implementation — tile width/height becoming zero — produces two distinct but related unsafe behaviors.
Vulnerabilities exists in the CLAHEImage() function of ImageMagick’s MagickCore/enhance.c.
- Unsigned integer underflow → out-of-bounds pointer arithmetic (OOB): when
tile_info.height == 0, the expressiontile_info.height - 1(unsigned) wraps to a very large value; using that value in pointer arithmetic yields a huge offset and OOB memory access (leading to memory corruption, SIGSEGV, or resource exhaustion). - Division/modulus by zero: where code performs
... / tile_info.widthor... % tile_info.heightwithout re-checking for zero, causing immediate division-by-zero crashes under sanitizers orabortat runtime.
Both behaviors are triggered by the same invalid tile condition (e.g., CLI exact -clahe 0x0! or automatic tile derivation dim >> 3 == 0 for very small images).
Details
Unsigned underflow(can lea to OOB)
-
Location:
MagickCore/enhance.c, around line 609 -
Version tested: 7.1.2-8 (local ASan(undefined). /UBSan build)
-
Vulnerable code
enhance.c: 609
p += (ptrdiff_t) clahe_info->width * (tile.height - 1); -
Root Cause
- If
tile.height == 0, then(tile.height - 1)underflows toUINT_MAX. - Multiplication with
clahe_info->widthyields a huge value close toSIZE_MAX. - Adding this to
pcauses pointer arithmetic underflow.
- If
Division-by-zero
-
File / Location:
MagickCore/enhance.c, around line 669 -
Version tested: 7.1.2-8 (local ASan(undefined). /UBSan build)
-
vulnerable code
enhance.c: 669-673
if ((image->columns % tile_info.width) != 0) tile_info.x=(ssize_t) (tile_info.width-(image->columns % tile_info.width)); tile_info.y=0; if ((image->rows % tile_info.height) != 0) tile_info.y=(ssize_t) (tile_info.height-(image->rows % tile_info.height)); -
Root cause
Missing input validation / bounds checks after computing default tile dimensions:
If either
tile_info.widthortile_info.heightis 0, this triggers a division by zero. Zeros can reach this point through:- Exact tiles: CLI
clahe 0x0!(the!forces zero to be used verbatim). - Auto tiles on tiny images: When a requested tile is
0(no!), the code derives a default from the image size (e.g.,dim >> 3). For images withdim < 8, this result is 0 unless clamped.
- Exact tiles: CLI
Reproduction
Unsigned underflow
Environment
Built with AddressSanitizer and UndefinedBehaviorSanitizer enabled.
export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1
export ASAN_OPTIONS=abort_on_error=1:allocator_may_return_null=1:detect_leaks=0
Command
./magick xc:black -clahe 0x0 null:
Output
MagickCore/enhance.c:609:6: runtime error: addition of unsigned offset overflowed
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior MagickCore/enhance.c:609:6 in CLAHEImage
./magick -size 10x10 xc:black -clahe 0x0 null:
<img width="1068" height="64" alt="image" src="https://github.com/user-attachments/assets/cd9637ee-1d03-4066-834d-fda22410dd8b" /> memory region corruption. `./magick -size 2000x2000 xc:black -clahe 0x0 null:` <img width="1069" height="70" alt="image" src="https://github.com/user-attachments/assets/ecbab79c-a3c2-4e8c-96c9-8e2aa8f0d2b2" /> → Significant memory consumption and evidence of memory region corruption. `./magick -size 4000x4000 xc:black -clahe 0x0 null:` <img width="776" height="49" alt="image" src="https://github.com/user-attachments/assets/63a7cec5-616b-4aa5-87f3-a546a87e6625" /> → Much larger memory usage; process appears to be aggressively consuming cache and address space. `./magick -size 8000x8000 xc:black -clahe 0x0 null:` <img width="748" height="46" alt="image"…
- Record
JLSEC-2026-928- 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 - Updated
- 2026-11-02
OSVOESA-2025-2587
4.7
ImageMagick security update
Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Security Fix(es):
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.(CVE-2025-62594)
- Record
OESA-2025-2587- 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 - Updated
- 2026-11-02
OSVOESA-2025-2588
5.9
ImageMagick security update
Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Security Fix(es):
ImageMagick contains an integer overflow vulnerability in the BMP decoder. An attacker can exploit this vulnerability by providing a specially crafted BMP file, leading to buffer overflow or denial of service.(CVE-2025-62171)
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.(CVE-2025-62594)
- Record
OESA-2025-2588- CVSS 3.1
- 5.9 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2025-2589
4.7
ImageMagick security update
Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Security Fix(es):
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.(CVE-2025-62594)
- Record
OESA-2025-2589- 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 - Updated
- 2026-11-02
OSVOESA-2025-2590
4.7
ImageMagick security update
Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Security Fix(es):
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.(CVE-2025-62594)
- Record
OESA-2025-2590- 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 - Updated
- 2026-11-02
OSVOESA-2025-2631
4.7
ImageMagick security update
Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
Security Fix(es):
ImageMagick is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200). 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.(CVE-2025-62594)
- Record
OESA-2025-2631- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-62594
4.7
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.
- Record
UBUNTU-CVE-2025-62594- 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 - 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 - Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15685-1 No score
ImageMagick-7.1.2.8-1.1 on GA media
These are all security issues fixed in the ImageMagick-7.1.2.8-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15685-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:20162-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
- CVE-2025-62594: unsigned underflow and division-by-zero can lead to OOB pointer arithmetic and process crash (bsc#1252749).
- CVE-2025-57807: BlobStream Forward-Seek Under-Allocation (bsc#1249362).
- CVE-2025-62171: incomplete fix for integer overflow in BMP Decoder (bsc#1252282).
- CVE-2025-55298: format string bug vulnerability can lead to heap overflow (bsc#1248780).
- CVE-2025-57803: 32-bit integer overflow can lead to heap out-of-bounds (OOB) write (bsc#1248784).
- CVE-2025-55212: division-by-zero in ThumbnailImage() when passing a geometry string containing only a colon to
montage -geometry(bsc#1248767).
- Record
openSUSE-SU-2025:20162-1- Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-13-CVE-2025-62594 No score
CVE-2025-62594 in rootio-imagemagick - Patched by Root
Root has patched CVE-2025-62594 in the rootio-imagemagick package for Root:Debian:13. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-13-CVE-2025-62594- Updated
- 2026-11-02
OSVSUSE-SU-2025:21211-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
- CVE-2025-62594: unsigned underflow and division-by-zero can lead to OOB pointer arithmetic and process crash (bsc#1252749).
- CVE-2025-57807: BlobStream Forward-Seek Under-Allocation (bsc#1249362).
- CVE-2025-62171: incomplete fix for integer overflow in BMP Decoder (bsc#1252282).
- CVE-2025-55298: format string bug vulnerability can lead to heap overflow (bsc#1248780).
- CVE-2025-57803: 32-bit integer overflow can lead to heap out-of-bounds (OOB) write (bsc#1248784).
- CVE-2025-55212: division-by-zero in ThumbnailImage() when passing a geometry string containing only a colon to
montage -geometry(bsc#1248767).
- Record
SUSE-SU-2025:21211-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:3956-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
- CVE-2025-62594: Fixed unsigned underflow and division-by-zero that can lead to OOB pointer arithmetic and process crash. (bsc#1252749)
- Record
SUSE-SU-2025:3956-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:3978-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
- CVE-2025-62594: Fixed unsigned underflow and division-by-zero that can lead to OOB pointer arithmetic and process crash. (bsc#1252749)
- Record
SUSE-SU-2025:3978-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:3985-1 No score
Security update for ImageMagick
This update for ImageMagick fixes the following issues:
- CVE-2025-62594: Fixed unsigned underflow and division-by-zero that can lead to OOB pointer arithmetic and process crash. (bsc#1252749)
- Record
SUSE-SU-2025:3985-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
Magick.NET-Q16-x64NuGet |
through 14.9.0 | None known |
Magick.NET-Q8-x64NuGet |
through 14.9.0 | None known |
Magick.NET-Q16-HDRI-x64NuGet |
through 14.9.0 | None known |
Magick.NET-Q8-OpenMP-x64NuGet |
through 14.9.0 | None known |
Magick.NET-Q16-HDRI-OpenMP-x64NuGet |
through 14.9.0 | None known |
Magick.NET-Q16-OpenMP-x64NuGet |
through 14.9.0 | None known |
Magick.NET-Q8-arm64NuGet |
through 14.9.0 | None known |
Magick.NET-Q16-arm64NuGet |
through 14.9.0 | None known |
Magick.NET-Q16-OpenMP-arm64NuGet |
through 14.9.0 | None known |
Magick.NET-Q8-OpenMP-arm64NuGet |
through 14.9.0 | None known |
Show 38 moreShow less
| Package | Affected | Fixed |
|---|---|---|
Magick.NET-Q16-HDRI-OpenMP-arm64NuGet |
through 14.9.0 | None known |
Magick.NET-Q16-HDRI-arm64NuGet |
through 14.9.0 | None known |
imagemagickAlpine:v3.22 |
before 7.1.2.8-r0 | 7.1.2.8-r0 |
imagemagickAlpine:v3.23 |
before 7.1.2.8-r0 | 7.1.2.8-r0 |
imagemagickAlpine:v3.24 |
before 7.1.2.8-r0 | 7.1.2.8-r0 |
imagemagickDebian:13 |
before 8:7.1.1.43+dfsg1-1+deb13u4, plus listed versions 8:7.1.1.43+dfsg1-18:7.1.1.43+dfsg1-1+deb13u18:7.1.1.43+dfsg1-1+deb13u28:7.1.1.43+dfsg1-1+deb13u3 |
8:7.1.1.43+dfsg1-1+deb13u4 |
imagemagickDebian:14 |
before 8:7.1.2.8+dfsg1-1, plus listed versions 8:7.1.1.43+dfsg1-18:7.1.1.46+dfsg1-18:7.1.1.47+dfsg1-18:7.1.1.47+dfsg1-28:7.1.2.1+dfsg1-18:7.1.2.3+dfsg1-18:7.1.2.7+dfsg1-1 |
8:7.1.2.8+dfsg1-1 |
Magick.NET-Q16-x64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 45 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.26.8.5.10016.8.5.4016.8.5.4026.8.6.3016.8.6.6016.8.6.8016.8.7.1 |
None known |
Magick.NET-Q8-x64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 45 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.26.8.5.10016.8.5.4016.8.5.4026.8.6.3016.8.6.6016.8.6.8016.8.7.1 |
None known |
Magick.NET-Q16-HDRI-x64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 45 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.26.8.9.1016.8.9.4016.8.9.5016.8.9.6017.0.0.17.0.0.107.0.0.101 |
None known |
Magick.NET-Q8-OpenMP-x64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 45 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.27.14.07.14.0.17.14.0.27.14.0.37.14.17.14.27.14.3 |
None known |
Magick.NET-Q16-HDRI-OpenMP-x64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 45 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.27.14.07.14.0.17.14.0.27.14.0.37.14.17.14.27.14.3 |
None known |
Magick.NET-Q16-OpenMP-x64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 45 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.27.14.07.14.0.17.14.0.27.14.0.37.14.17.14.27.14.3 |
None known |
Magick.NET-Q8-arm64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 44 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.28.6.08.6.19.0.09.1.09.1.19.1.2 |
None known |
Magick.NET-Q16-arm64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 44 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.28.6.08.6.19.0.09.1.09.1.19.1.2 |
None known |
Magick.NET-Q16-OpenMP-arm64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 44 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.28.6.08.6.19.0.09.1.09.1.19.1.2 |
None known |
Magick.NET-Q8-OpenMP-arm64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 44 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.28.6.08.6.19.0.09.1.09.1.19.1.2 |
None known |
Magick.NET-Q16-HDRI-OpenMP-arm64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 44 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.28.6.08.6.19.0.09.1.09.1.19.1.2 |
None known |
Magick.NET-Q16-HDRI-arm64NuGet |
through 14.9.0, plus listed versions 10.0.010.1.011.0.011.1.011.1.1 Show 44 moreShow less11.1.211.2.011.2.111.3.012.0.012.0.112.1.012.2.012.2.112.2.212.3.013.0.013.0.113.1.013.1.113.1.213.1.313.10.013.2.013.3.013.4.013.5.013.6.013.7.013.8.013.9.013.9.114.0.014.1.014.2.014.3.014.4.014.5.014.6.014.7.014.8.014.8.114.8.28.6.08.6.19.0.09.1.09.1.19.1.2 |
None known |
ImageMagick_jllJulia |
before 7.1.2011+0 | 7.1.2011+0 |
ImageMagickopenEuler:24.03-LTS-SP1 |
before 7.1.2.8-1.oe2403sp1 | 7.1.2.8-1.oe2403sp1 |
ImageMagickopenEuler:24.03-LTS-SP2 From an advisory covering 2 CVEs |
before 7.1.2.8-1.oe2403sp2 | 7.1.2.8-1.oe2403sp2 |
ImageMagickopenEuler:22.03-LTS-SP3 |
before 7.1.2.8-1.oe2203sp3 | 7.1.2.8-1.oe2203sp3 |
ImageMagickopenEuler:22.03-LTS-SP4 |
before 7.1.2.8-1.oe2203sp4 | 7.1.2.8-1.oe2203sp4 |
ImageMagickopenEuler:24.03-LTS |
before 7.1.2.8-1.oe2403 | 7.1.2.8-1.oe2403 |
ImageMagickSUSE:Linux Enterprise Server 16.0 From an advisory covering 6 CVEs |
before 7.1.2.0-160000.4.1 | 7.1.2.0-160000.4.1 |
ImageMagickSUSE:Linux Enterprise Server for SAP applications 16.0 From an advisory covering 6 CVEs |
before 7.1.2.0-160000.4.1 | 7.1.2.0-160000.4.1 |
ImageMagickSUSE:Linux Enterprise Module for Desktop Applications 15 SP7 |
before 7.1.1.43-150700.3.22.1 | 7.1.1.43-150700.3.22.1 |
ImageMagickSUSE:Linux Enterprise Module for Development Tools 15 SP7 |
before 7.1.1.43-150700.3.22.1 | 7.1.1.43-150700.3.22.1 |
ImageMagickSUSE:Linux Enterprise Module for Desktop Applications 15 SP6 |
before 7.1.1.21-150600.3.29.1 | 7.1.1.21-150600.3.29.1 |
ImageMagickSUSE:Linux Enterprise Module for Development Tools 15 SP6 |
before 7.1.1.21-150600.3.29.1 | 7.1.1.21-150600.3.29.1 |
ImageMagickopenSUSE:Leap 15.6 |
before 7.1.1.21-150600.3.29.1 | 7.1.1.21-150600.3.29.1 |
ImageMagickSUSE:Linux Enterprise Module for Desktop Applications 15 SP6 |
before 7.1.0.9-150400.6.51.1 | 7.1.0.9-150400.6.51.1 |
ImageMagickSUSE:Linux Enterprise Module for Desktop Applications 15 SP7 |
before 7.1.0.9-150400.6.51.1 | 7.1.0.9-150400.6.51.1 |
imagemagickUbuntu:25.10 |
All versions, plus listed versions 8:7.1.1.43+dfsg1-18:7.1.1.43+dfsg1-1ubuntu18:7.1.1.43+dfsg1-1ubuntu28:7.1.2.3+dfsg1-18:7.1.2.3+dfsg1-1ubuntu0.1 |
None known |
imagemagickUbuntu:26.04:LTS |
before 8:7.1.2.8+dfsg1-1, plus listed versions 8:7.1.2.3+dfsg1-1 |
8:7.1.2.8+dfsg1-1 |
ImageMagickopenSUSE:Tumbleweed |
before 7.1.2.8-1.1 | 7.1.2.8-1.1 |
ImageMagickopenSUSE:Leap 16.0 From an advisory covering 6 CVEs |
before 7.1.2.0-160000.4.1 | 7.1.2.0-160000.4.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-62594 is a medium vulnerability (CVSS 4.7) in Imagemagick, published October 27, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.37%, the 31st percentile. Fixed in imagemagick 7.1.2.8-r0.
References
github.com/ImageMagick/ImageMagick/security/advisories/GHSA-wpp4-vqfq-v4hp
github.com/ImageMagick/ImageMagick/commit/7b47fe369eda90483402fcd3d78fa4167d3bb129
nvd.nist.gov/vuln/detail/CVE-2025-62594
github.com/advisories/GHSA-wpp4-vqfq-v4hp
security.alpinelinux.org/vuln/CVE-2025-62594
github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62594.json
Show 26 moreShow less
security-tracker.debian.org/tracker/CVE-2025-62594
github.com/ImageMagick/ImageMagick
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2587
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2588
nvd.nist.gov/vuln/detail/CVE-2025-62171
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2589
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2590
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2631
suse.com/support/update/announcement/2025/suse-su-202521211-1
bugzilla.suse.com/1248767
bugzilla.suse.com/1248780
bugzilla.suse.com/1248784
bugzilla.suse.com/1249362
bugzilla.suse.com/1252282
bugzilla.suse.com/1252749
suse.com/security/cve/CVE-2025-55212
suse.com/security/cve/CVE-2025-55298
suse.com/security/cve/CVE-2025-57803
suse.com/security/cve/CVE-2025-57807
suse.com/security/cve/CVE-2025-62171
suse.com/security/cve/CVE-2025-62594
suse.com/support/update/announcement/2025/suse-su-20253956-1
suse.com/support/update/announcement/2025/suse-su-20253978-1
suse.com/support/update/announcement/2025/suse-su-20253985-1
ubuntu.com/security/CVE-2025-62594
cve.org/CVERecord?id=CVE-2025-62594
Left out here: 644 versions and the rest of 3 source descriptions. The JSON record has them.