Read the docs
TI-2025-35686 Aliases CVE-2025-57803GHSA-mxvv-97wh-cfmm

ImageMagick (WriteBMPImage): 32-bit integer overflow when writing BMP scanline stride → heap buffer overflow

Priority MEDIUM 42CWE-122Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 2 fixed, 1 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-122 and the CVSS impact.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00908 60th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial ImageMagick (ImageMagick): 7.1.2-2, 6.9.13-28Magick.NET-Q16-AnyCPU (NuGet): 14.8.1+5 more productsRed Hat: 1 advisoryRed Hat: 2 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ImageMagickImageMagickbefore 7.1.2-2; before 6.9.13-287.1.2-2, 6.9.13-28Patch availableCNA
—Magick.NET-Q16-AnyCPU (NuGet)before 14.8.114.8.1Patch availableGHSA-mxvv-97wh-cfmm
—Magick.NET-Q16-HDRI-AnyCPU (NuGet)before 14.8.114.8.1Patch availableGHSA-mxvv-97wh-cfmm
—Magick.NET-Q16-HDRI-x86 (NuGet)before 14.8.114.8.1Patch availableGHSA-mxvv-97wh-cfmm
—Magick.NET-Q16-x86 (NuGet)before 14.8.114.8.1Patch availableGHSA-mxvv-97wh-cfmm
—Magick.NET-Q8-AnyCPU (NuGet)before 14.8.114.8.1Patch availableGHSA-mxvv-97wh-cfmm
—Magick.NET-Q8-x86 (NuGet)before 14.8.114.8.1Patch availableGHSA-mxvv-97wh-cfmm
  • ImageMagick VendorImageMagick Affected before 7.1.2-2; before 6.9.13-28 Fixed in 7.1.2-2, 6.9.13-28 Patch available CNA
  • Magick.NET-Q16-AnyCPU (NuGet) Vendor— Affected before 14.8.1 Fixed in 14.8.1 Patch available GHSA-mxvv-97wh-cfmm
  • Magick.NET-Q16-HDRI-AnyCPU (NuGet) Vendor— Affected before 14.8.1 Fixed in 14.8.1 Patch available GHSA-mxvv-97wh-cfmm
  • Magick.NET-Q16-HDRI-x86 (NuGet) Vendor— Affected before 14.8.1 Fixed in 14.8.1 Patch available GHSA-mxvv-97wh-cfmm
  • Magick.NET-Q16-x86 (NuGet) Vendor— Affected before 14.8.1 Fixed in 14.8.1 Patch available GHSA-mxvv-97wh-cfmm
  • Magick.NET-Q8-AnyCPU (NuGet) Vendor— Affected before 14.8.1 Fixed in 14.8.1 Patch available GHSA-mxvv-97wh-cfmm
  • Magick.NET-Q8-x86 (NuGet) Vendor— Affected before 14.8.1 Fixed in 14.8.1 Patch available GHSA-mxvv-97wh-cfmm

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*before 6.9.13-28; 7.0.0-0 to before 7.1.2-2VulnerableImageMagick
  • cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:* Versions before 6.9.13-28; 7.0.0-0 to before 7.1.2-2 Vulnerable ·ImageMagick

Remediation

  • Fix · CNA ImageMagick (ImageMagick) Fixed in 7.1.2-2, 6.9.13-28
  • Fix · GHSA-mxvv-97wh-cfmm Magick.NET-Q16-AnyCPU (NuGet) Fixed in 14.8.1 Advisory →
  • Fix · GHSA-mxvv-97wh-cfmm Magick.NET-Q16-HDRI-AnyCPU (NuGet) Fixed in 14.8.1 Advisory →
  • Fix · GHSA-mxvv-97wh-cfmm Magick.NET-Q16-HDRI-x86 (NuGet) Fixed in 14.8.1 Advisory →
  • Fix · GHSA-mxvv-97wh-cfmm Magick.NET-Q16-x86 (NuGet) Fixed in 14.8.1 Advisory →
  • Fix · GHSA-mxvv-97wh-cfmm Magick.NET-Q8-AnyCPU (NuGet) Fixed in 14.8.1 Advisory →
  • Fix · GHSA-mxvv-97wh-cfmm Magick.NET-Q8-x86 (NuGet) Fixed in 14.8.1 Advisory →

Red Hat 1 advisory

  • RHSA-2025:16313 Released 2025-09-22 · Red Hat rating Important
    ImageMagick security update
    • Red Hat Enterprise Linux Server (v. 7 ELS) ImageMagick-6.9.10.68-9.el7_9, ImageMagick-6.9.10.68-9.el7_9.ppc, ImageMagick-c++-6.9.10.68-9.el7_9 +1
    • Red Hat Enterprise Linux Server Optional (v. 7 ELS) ImageMagick-c++-6.9.10.68-9.el7_9, ImageMagick-c++-6.9.10.68-9.el7_9.ppc, ImageMagick-c++-devel-6.9.10.68-9.el7_9 +4

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux Server (v. 7 ELS)Fixed RHSA-2025:16313
Red Hat Enterprise Linux Server Optional (v. 7 ELS)Fixed RHSA-2025:16313

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-57803
  2. 2026-10-03 Alias added: GHSA-mxvv-97wh-cfmm

References

  • TI-2016-03144 The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT… KEVCVSS 3.1HIGH 8.4
  • TI-2023-16996 Improper input validation in ImageMagick CVSS 3.1CRITICAL 9.8
  • TI-2016-03148 The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1… KEVCVSS 3.1MEDIUM 5.5
  • TI-2016-03145 The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote… KEVCVSS 3.1MEDIUM 5.5
  • TI-2025-35690 ImageMagick BlobStream Forward-Seek Under-Allocation CVSS 3.1CRITICAL 9.8
  • TI-2025-33094 ImageMagick has Stack Buffer Overflow in image.c CVSS 3.1CRITICAL 9.8
See all 888 →

Sources