Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. magick.net-q16-anycpu
  4. ›
  5. CVE-2025-62171

CVE-2025-62171: ImageMagick has Integer Overflow in BMP Decoder (ReadBMP)

October 28, 2025 (updated November 3, 2025)

CVE-2025-57803 claims to be patched in ImageMagick 7.1.2-2, but the fix is incomplete and ineffective. The latest version 7.1.2-5 remains vulnerable to the same integer overflow attack.

The patch added BMPOverflowCheck() but placed it after the overflow occurs, making it useless. A malicious 58-byte BMP file can trigger AddressSanitizer crashes and DoS.

Affected Versions:

  • ImageMagick < 7.1.2-2 (originally reported)
  • ImageMagick 7.1.2-2 through 7.1.2-5 (incomplete patch)

Platform and Configuration Requirements:

  • 32-bit systems ONLY (i386, i686, armv7l, etc.)
  • Requires size_t = 4 bytes. (64-bit systems are NOT vulnerable (size_t = 8 bytes))
  • Requires modified resource limits: The default width, height, and area limits must have been manually increased (Systems using default ImageMagick resource limits are NOT vulnerable).

References

  • github.com/ImageMagick/ImageMagick
  • github.com/ImageMagick/ImageMagick/commit/cea1693e2ded51b4cc91c70c54096cbed1691c00
  • github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9pp9-cfwx-54rm
  • github.com/advisories/GHSA-9pp9-cfwx-54rm
  • github.com/dlemstra/Magick.NET/releases/tag/14.9.0
  • lists.debian.org/debian-lts-announce/2025/10/msg00019.html
  • nvd.nist.gov/vuln/detail/CVE-2025-62171

Code Behaviors & Features

Detect and mitigate CVE-2025-62171 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 14.9.0

Fixed versions

  • 14.9.0

Solution

Upgrade to version 14.9.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

nuget/magick.net-q16-anycpu/CVE-2025-62171.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 04 Dec 2025 12:18:39 +0000.