Skip to content
OpenAdvisories
High ALAS2-2026-3278 9 CVEs

Important: ImageMagick security update (Amazon Linux 2)

Published Apr 27, 2026 · Updated Apr 29, 2026

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-40312: ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, an off by one error in the MSL decoder could result in a crash when a malicous MSL file is read. This issue has been fixed in version 7.1.2-19. CVE-2026-40311: ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below 7.1.2-19 and 6.9.13-44 contain a heap use-after-free vulnerability that can cause a crash when reading and printing values from an invalid XMP profile. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19. CVE-2026-40310: ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below both 7.1.2-19 and 6.9.13-44, contain a heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19. CVE-2026-40169: ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, a crafted image could result in an out of bounds heap write when writing a yaml or json output, resulting in a crash. This issue has been fixed in version 7.1.2-19. CVE-2026-33908: ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, Magick frees the memory of the XML tree via the `DestroyXMLTree()` function; however, this process is executed recursively with no depth limit imposed. When Magick processes an XML file with deeply nested structures, it will exhaust the stack memory, resulting in a Denial of Service (DoS) attack. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19. CVE-2026-33905: ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, the -sample operation has an out of bounds read when an specific offset is set through the `sample:offset` define that could lead to an out of bounds read. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19. CVE-2026-33899: ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-189 and 6.9.13-44, when `Magick` parses an XML file it is possible that a single zero byte is written out of the bounds. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19. CVE-2026-33536: ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-18 and 6.9.13-43, due to an incorrect return value on certain platforms a pointer is incremented past the end of a buffer that is on the stack and that could result in an out of bounds write. Versions 7.1.2-18 and 6.9.13-43 patch the issue. CVE-2026-33535: ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-18 and 6.9.13-43, an out-of-bounds write of a zero byte exists in the X11 `display` interaction path that could lead to a crash. Versions 7.1.2-18 and 6.9.13-43 patch the issue.

Fixed packages 7

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

Vulnerabilities 9

  • High 7.5

    ImageMagick is vulnerable to Stack Overflow in DestroyXMLTree()

    ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, Magick frees the memory of the XML tree via the `DestroyXMLTree()` function; however, this process is executed recurs…

  • Medium 6.2

    ImageMagick: Heap buffer overflow (WRITE) in the YAML and JSON encoders

    ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, a crafted image could result in an out of bounds heap write when writing a yaml or json output, resulting in a crash. This issue has bee…

  • Medium 6.2

    ImageMagick: Off-by-One in MSL decoder could result in crash

    ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-19, an off by one error in the MSL decoder could result in a crash when a malicous MSL file is read. This issue has been fixed in version 7.…

  • Medium 5.5

    ImageMagick has an Out-of-Bounds read via -sample operation

    ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, the -sample operation has an out of bounds read when an specific offset is set through the `sample:offset` define tha…

  • Medium 5.5

    ImageMagick: Heap out-of-bounds write in JP2 encoder

    ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below both 7.1.2-19 and 6.9.13-44, contain a heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index. This issue h…

  • Medium 5.5

    ImageMagick: Heap-use-after-free via XMP profile could result in a crash when printing values

    ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below 7.1.2-19 and 6.9.13-44 contain a heap use-after-free vulnerability that can cause a crash when reading and printing values from an invalid XMP profil…

  • Medium 5.3

    ImageMagick: Heap BufferOverflow write of single zero byte when parsing XML

    ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below 7.1.2-189 and 6.9.13-44, when `Magick` parses an XML file it is possible that a single zero byte is written out of the bounds. This issue has been…

  • Medium 5.1

    ImageMagick has an Out-of-bounds Write via InterpretImageFilename

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-18 and 6.9.13-43, due to an incorrect return value on certain platforms a pointer is incremented past the end of a buffer that is on the stack and th…

  • Medium 4.0

    ImageMagick has an Out-of-Bounds write of a zero byte in its X11 display interaction

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to 7.1.2-18 and 6.9.13-43, an out-of-bounds write of a zero byte exists in the X11 `display` interaction path that could lead to a crash. Versions 7.1.2-18 an…

References

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-33535.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-33536.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-33899.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-33905.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-33908.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-40169.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-40310.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-40311.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-40312.html