Integer Overflow or Wraparound Affecting imagemagick package, versions [0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.82% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-IMAGEMAGICK-12215845
  • published28 Aug 2025
  • disclosed26 Aug 2025
  • creditLumina Mescuwa

Introduced: 26 Aug 2025

CVE-2025-57803  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the bytes_per_line parameter in the ReadBMPImage function. An attacker can execute arbitrary code or cause a denial of service by supplying crafted input that triggers a 32-bit integer overflow, leading to a heap buffer overflow during BMP scanline stride calculation.

References

CVSS Base Scores

version 4.0
version 3.1