8.8

CVE-2025-57803: imagemagick Heap-based Buffer Overflow

CVSS: 8.8v3.1HighModified
AliasesRHSA-2025:16313UBUNTU-CVE-2025-57803DEBIAN-CVE-2025-57803
Published 26-08-2025Last modified 26-02-2026

Vulnerability summary

CVE-2025-57803 is a high (CVSS 8.8) Heap-based Buffer Overflow vulnerability in imagemagick. EPSS estimates a 0.87% chance of exploitation in the next 30 days, higher than 58.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
45/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.87%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 11 · Related 9

Timeline

  1. 26-08-2025
    PublishedVulnerability first disclosed.
  2. 26-02-2026
    Last modifiedVulnerability information updated.

Description

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2 for ImageMagick's 32-bit build, a 32-bit integer overflow in the BMP encoder’s scanline-stride computation collapses bytes_per_line (stride) to a tiny value while the per-row writer still emits 3 × width bytes for 24-bpp images. The row base pointer advances using the (overflowed) stride, so the first row immediately writes past its slot and into adjacent heap memory with attacker-controlled bytes. This is a classic, powerful primitive for heap corruption in common auto-convert pipelines. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.87%

Chance of exploitation in the next 30 days

Percentile

58%

Versus all other CVEs

30-day change

+0.03 pp

From 0.84% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.87%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Imagemagick

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Redhat7 products
  • ImageMagick< 0:6.9.10.68-9.el7_9
  • ImageMagick-c++< 0:6.9.10.68-9.el7_9
  • ImageMagick-c++-devel< 0:6.9.10.68-9.el7_9
  • ImageMagick-debuginfo< 0:6.9.10.68-9.el7_9
  • ImageMagick-devel< 0:6.9.10.68-9.el7_9
NuGet6 products
  • magick.net-q16-anycpu< 14.8.1
  • magick.net-q16-hdri-anycpu< 14.8.1
  • Magick.NET-Q16-HDRI-x86< 14.8.1
  • Magick.NET-Q16-x86< 14.8.1
  • magick.net-q8-anycpu< 14.8.1
Debian1 product
  • imagemagick< 8:6.9.11.60+dfsg-1.6+deb12u4 | < 8:7.1.1.43+dfsg1-1+deb13u2 | < 8:7.1.2.3+dfsg1-1
Imagemagick1 product
  • imagemagick< 7.1.2-2 | < 6.9.13-28 | ≥ 7.0.0-0, < 7.1.2-2
Ubuntu1 product
  • imagemagick< 8:6.7.7.10-6ubuntu3.13+esm15 | < 8:6.8.9.9-7ubuntu5.16+esm14 | < 8:6.9.7.4+dfsg-16ubuntu6.15+esm6 | < 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm4 | < 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm4 | < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm3

5 vendors · 16 products

References

16 links
Show all 16 references