Alpine: imagemagick6: security update to 6.9.12.31-r0

low Tenable Cloud Security Plugin ID 404978

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- A flaw was found in ImageMagick in MagickCore/resample.c. An attacker who submits a crafted file that is
processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The
highest threat from this vulnerability is to system availability. (CVE-2021-20246)

- A flaw was found in ImageMagick in versions before 7.0.11 and before 6.9.12, where a division by zero in
WaveImage() of MagickCore/visual-effects.c may trigger undefined behavior via a crafted image file
submitted to an application using ImageMagick. The highest threat from this vulnerability is to system
availability. (CVE-2021-20309)

- ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you
may use, copy, modify, and distribute in both open and proprietary applications. In affected versions and
in certain cases, Postscript files could be read and written when specifically excluded by a `module`
policy in `policy.xml`. ex. <policy domain="module" rights="none" pattern="PS" />. The issue has been
resolved in ImageMagick 7.1.0-7 and in 6.9.12-22. Fortunately, in the wild, few users utilize the `module`
policy and instead use the `coder` policy that is also our workaround recommendation: <policy
domain="coder" rights="none" pattern="{PS,EPI,EPS,EPSF,EPSI}" />. (CVE-2021-39212)

See Also

https://security.alpinelinux.org/vuln/CVE-2021-20246

https://security.alpinelinux.org/vuln/CVE-2021-20309

https://security.alpinelinux.org/vuln/CVE-2021-39212

Plugin Details

Severity: Low

ID: 404978

Version: Revision 1.25

Type: Local

Published: 10/31/2023

Updated: 7/2/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.18

CVSS v2

Risk Factor: Low

Base Score: 3.6

Temporal Score: 2.7

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

CVSS Score Source: CVE-2021-39212

CVSS v3

Risk Factor: Low

Base Score: 3.6

Temporal Score: 3.2

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

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

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 3/9/2021

Reference Information

CVE: CVE-2021-20246, CVE-2021-20309, CVE-2021-39212

IAVB: 2021-B-0017-S, 2022-B-0032-S