Out-of-bounds Write Affecting ImageMagick/ImageMagick package, versions [,6.9.13-29)[7.0.7-9, 7.1.2-3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (8th 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 IDSNYK-UNMANAGED-IMAGEMAGICKIMAGEMAGICK-12817819
  • published17 Sept 2025
  • disclosed5 Sept 2025
  • creditLumina Mescuwa

Introduced: 5 Sep 2025

NewCVE-2025-57807  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-131  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade ImageMagick/ImageMagick to version 6.9.13-29, 7.1.2-3 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the WriteBlob() function. An attacker can achieve memory corruption, by manipulating the stream offset using a forward seek beyond the current buffer extent and then performing a write operation. This allows writing attacker-controlled data at an attacker-chosen offset outside the allocated heap buffer.

References

CVSS Base Scores

version 4.0
version 3.1