Buffer Underflow Affecting ImageMagick-libs package, versions <1:6.9.12.82-1.amzn2023.0.9


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.05% (17th 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-AMZN2023-IMAGEMAGICKLIBS-11482569
  • published5 Aug 2025
  • disclosed14 Jul 2025

Introduced: 14 Jul 2025

NewCVE-2025-53101  (opens in a new tab)
CWE-124  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 ImageMagick-libs to version 1:6.9.12.82-1.amzn2023.0.9 or higher.
This issue was patched in ALAS2023-2025-1126.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ImageMagick-libs package and not the ImageMagick-libs package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions prior to 7.1.2-0 and 6.9.13-26, in ImageMagick's magick mogrify command, specifying multiple consecutive %d format specifiers in a filename template causes internal pointer arithmetic to generate an address below the beginning of the stack buffer, resulting in a stack overflow through vsnprintf(). Versions 7.1.2-0 and 6.9.13-26 fix the issue.

CVSS Base Scores

version 3.1