Alpine: gd: security update to 2.2.5-r4

high Tenable Self-Hosted Container Security Plugin ID 404540

Description

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

- In the GD Graphics Library (aka LibGD) through 2.2.5, there is a heap-based buffer over-read in tiffWriter
in gd_tiff.c. NOTE: the vendor says "In my opinion this issue should not have a CVE, since the GD and GD2
formats are documented to be 'obsolete, and should only be used for development and testing purposes.'
(CVE-2017-6363)

- read_header_tga in gd_tga.c in the GD Graphics Library (aka LibGD) through 2.3.2 allows remote attackers
to cause a denial of service (out-of-bounds read) via a crafted TGA file. (CVE-2021-38115)

- gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free. NOTE:
the vendor's position is "The GD2 image format is a proprietary image format of libgd. It has to be
regarded as being obsolete, and should only be used for development and testing purposes. (CVE-2021-40145)

See Also

https://security.alpinelinux.org/vuln/CVE-2017-6363

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

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

Plugin Details

Severity: High

ID: 404540

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: Medium

Score: 4.3

Percentile: 53.06

CVSS v2

Risk Factor: Medium

Base Score: 5.8

Temporal Score: 4.5

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

CVSS Score Source: CVE-2017-6363

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.3

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

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Vulnerability Publication Date: 2/27/2020

Reference Information

CVE: CVE-2017-6363, CVE-2021-38115, CVE-2021-40145