Skip to content
OpenAdvisories
High ALAS2-2025-3000 4 CVEs

Important: ImageMagick security update (Amazon Linux 2)

Published Sep 9, 2025 · Updated Sep 16, 2025

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2025-55298: ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed to FormatLocaleString without proper sanitization. An attacker can overwrite arbitrary memory regions, enabling a wide range of attacks from heap overflow to remote code execution. This issue has been patched in versions 6.9.13-28 and 7.1.2-2. CVE-2025-55160: ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-27 and 7.1.2-1, there is undefined behavior (function-type-mismatch) in splay tree cloning callback. This results in a deterministic abort under UBSan (DoS in sanitizer builds), with no crash in a non-sanitized build. This issue has been patched in versions 6.9.13-27 and 7.1.2-1. CVE-2025-55005: ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-1, when preparing to transform from Log to sRGB colorspaces, the logmap construction fails to handle cases where the reference-black or reference-white value is larger than 1024. This leads to corrupting memory beyond the end of the allocated logmap buffer. This issue has been patched in version 7.1.2-1. CVE-2025-55004: ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-1, ImageMagick is vulnerable to heap-buffer overflow read around the handling of images with separate alpha channels when performing image magnification in ReadOneMNGIMage. This can likely be used to leak subsequent memory contents into the output image. This issue has been patched in version 7.1.2-1.

Fixed packages 7

ReleasePackageFixed in
Amazon Linux · 2 ImageMagick 0:6.9.10.97-1.amzn2.0.16
Amazon Linux · 2 ImageMagick-c++ 0:6.9.10.97-1.amzn2.0.16
Amazon Linux · 2 ImageMagick-c++-devel 0:6.9.10.97-1.amzn2.0.16
Amazon Linux · 2 ImageMagick-debuginfo 0:6.9.10.97-1.amzn2.0.16
Amazon Linux · 2 ImageMagick-devel 0:6.9.10.97-1.amzn2.0.16
Amazon Linux · 2 ImageMagick-doc 0:6.9.10.97-1.amzn2.0.16
Amazon Linux · 2 ImageMagick-perl 0:6.9.10.97-1.amzn2.0.16

Vulnerabilities 4

  • High 7.6

    ImageMagick: heap-buffer overflow read in MNG magnification with alpha

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-1, ImageMagick is vulnerable to heap-buffer overflow read around the handling of images with separate alpha channels when performing image ma…

  • High 7.5

    ImageMagick Format String Bug in InterpretImageFilename leads to arbitrary code execution

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to ImageMagick versions 6.9.13-28 and 7.1.2-2, a format string bug vulnerability exists in InterpretImageFilename function where user input is directly passed…

  • Medium 6.1

    ImageMagick Undefined Behavior (function-type-mismatch) in CloneSplayTree

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-27 and 7.1.2-1, there is undefined behavior (function-type-mismatch) in splay tree cloning callback. This results in a deterministic abort …

  • Medium 5.5

    ImageMagick: heap-buffer overflow in log colorspace handling

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to version 7.1.2-1, when preparing to transform from Log to sRGB colorspaces, the logmap construction fails to handle cases where the reference-black or refer…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-55004.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-55005.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-55160.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2025-55298.html