Amazon Linux 2 : ImageMagick, --advisory ALAS2-2026-3346 (ALAS-2026-3346)

medium Nessus Plugin ID 319815

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of ImageMagick installed on the remote host is prior to 6.9.10.97-1. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2026-3346 advisory.

When writing an IPTC output file a malicious input file could cause an out of bounds read of a single byte. (as per: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-7wff-wpr6-vmhm) (CVE-2026-42326)

Due to a missing check in the PSD decoder it would be possible to bypass the list-length resource policy when decoding a PSD image. Other security limits would still apply. (as per:
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-cwpj-h54c-xjpx) (CVE-2026-45031)

An of by one in the meta encoder could result in an out of bounds read of a single byte in the meta encoder. (as per: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-cr6r-hmj8-pr7r) (CVE-2026-45358)

An invalid connected-components:keep-top value could result in a heap buffer over-read when performing the connected components operation (CVE-2026-45359)

When performing a polynomial distortion an out of bounds over-read of 24 bytes can occur when specifying specific arguments. (CVE-2026-45624)

Because of a missing check in the MNG coder it would be possible to read more images than the list limit policy would allow resulting in excessive resource use. (CVE-2026-45664)

When reading multiple images with different dimensions an out of bounds heap write can occur. (as per:
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-36wm-hprc-mcf5) (CVE-2026-46520)

When using LZMA compression in the MIFF encoder an out of bounds write can occur due to a missing check.
(as per: https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-jcqp-6r6f-3mfx) (CVE-2026-46521)

Due to a missing check in the MIFF decoder a crafted file could cause an infinite loop resulting in CPU exhaustion. (CVE-2026-46522)

A crafted MSL image can trigger a heap-use-after-free. (as per:
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5r4x-w6p5-222q) (CVE-2026-46523)

An incorrect check in the JP2 will result in an heap buffer over-write of a single byte when specifying certain options. (as per:
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-533m-3wf6-c33v) (CVE-2026-46559)

An attacker who can connect to a magick -distribute-cache service can cause a heap buffer over-write in the server process. (as per:
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-p93h-f2jc-477j) (CVE-2026-46692)

An attacker who can connect to a magick -distribute-cache service can hijack a file descriptor in the server process when a race condition is met. (as per:
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-4g75-9r48-jf92) (CVE-2026-46693)

The distributed pixel cache was originally designed to operate without a challenge-response authentication model. However, given today's heightened security expectations, we have changed our implementation.
(CVE-2026-47165)

An attacker who can connect to a magick -distribute-cache service can cause a heap buffer over-read in the server process (as per:
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6gxq-f64p-5w6f) (CVE-2026-47166)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update ImageMagick' or or 'yum update --advisory ALAS2-2026-3346' to update your system.

See Also

https://alas.aws.amazon.com//AL2/ALAS2-2026-3346.html

https://alas.aws.amazon.com/faqs.html

https://explore.alas.aws.amazon.com/CVE-2026-42326.html

https://explore.alas.aws.amazon.com/CVE-2026-45031.html

https://explore.alas.aws.amazon.com/CVE-2026-45358.html

https://explore.alas.aws.amazon.com/CVE-2026-45359.html

https://explore.alas.aws.amazon.com/CVE-2026-45624.html

https://explore.alas.aws.amazon.com/CVE-2026-45664.html

https://explore.alas.aws.amazon.com/CVE-2026-46520.html

https://explore.alas.aws.amazon.com/CVE-2026-46521.html

https://explore.alas.aws.amazon.com/CVE-2026-46522.html

https://explore.alas.aws.amazon.com/CVE-2026-46523.html

https://explore.alas.aws.amazon.com/CVE-2026-46559.html

https://explore.alas.aws.amazon.com/CVE-2026-46692.html

https://explore.alas.aws.amazon.com/CVE-2026-46693.html

https://explore.alas.aws.amazon.com/CVE-2026-47165.html

https://explore.alas.aws.amazon.com/CVE-2026-47166.html

Plugin Details

Severity: Medium

ID: 319815

File Name: al2_ALAS-2026-3346.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 6/8/2026

Updated: 6/8/2026

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.1

Vector: CVSS2#AV:L/AC:H/Au:M/C:C/I:N/A:C

CVSS Score Source: CVE-2026-47166

CVSS v3

Risk Factor: Medium

Base Score: 5.7

Temporal Score: 5.1

Vector: CVSS:3.0/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:imagemagick-debuginfo, p-cpe:/a:amazon:linux:imagemagick-devel, p-cpe:/a:amazon:linux:imagemagick-c%2b%2b, p-cpe:/a:amazon:linux:imagemagick, p-cpe:/a:amazon:linux:imagemagick-doc, p-cpe:/a:amazon:linux:imagemagick-perl, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:imagemagick-c%2b%2b-devel

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/8/2026

Vulnerability Publication Date: 5/18/2026

Reference Information

CVE: CVE-2026-42326, CVE-2026-45031, CVE-2026-45358, CVE-2026-45359, CVE-2026-45624, CVE-2026-45664, CVE-2026-46520, CVE-2026-46521, CVE-2026-46522, CVE-2026-46523, CVE-2026-46559, CVE-2026-46692, CVE-2026-46693, CVE-2026-47165, CVE-2026-47166