Debian dla-4411 : libgd-dev - security update

high Nessus Plugin ID 278742

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-4411 advisory.

------------------------------------------------------------------------- Debian LTS Advisory DLA-4411-1 [email protected] https://www.debian.org/lts/security/ Guilhem Moulin December 16, 2025 https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : libgd2 Version : 2.3.0-2+deb11u1 CVE ID : CVE-2021-38115 CVE-2021-40145 CVE-2021-40812 Debian Bug : 991912

Vulnerabilities were found in libgd2, the GD Graphics Library, which could lead to Denial of Service via crafted input files.

CVE-2021-38115

Maryam Ebrahimzadeh discovered an out-of-bounds read vulnerability in read_header_tga(), which may lead to Denial of Service via a crafted TGA file.

CVE-2021-40145

Maryam Ebrahimzadeh discovered a double free vulnerability in gdImageGd2Ptr().

CVE-2021-40812

Maryam Ebrahimzadeh discovered out-of-bounds read vulnerabilities, which may lead to Denial of Service via a crafted BMP or WebP file.

For Debian 11 bullseye, these problems have been fixed in version 2.3.0-2+deb11u1.

We recommend that you upgrade your libgd2 packages.

For the detailed security status of libgd2 please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/libgd2

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS Attachment:
signature.asc Description: PGP signature

Tenable has extracted the preceding description block directly from the Debian 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

Upgrade the libgd-dev packages.

See Also

https://security-tracker.debian.org/tracker/source-package/libgd2

https://security-tracker.debian.org/tracker/CVE-2021-38115

https://security-tracker.debian.org/tracker/CVE-2021-40145

https://security-tracker.debian.org/tracker/CVE-2021-40812

https://packages.debian.org/source/bullseye/libgd2

Plugin Details

Severity: High

ID: 278742

File Name: debian_DLA-4411.nasl

Version: 1.1

Type: local

Agent: unix

Published: 12/16/2025

Updated: 12/16/2025

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

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

CVSS Score Source: CVE-2021-40145

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

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

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

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libgd-tools, cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:libgd3, p-cpe:/a:debian:debian_linux:libgd-dev

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/16/2025

Vulnerability Publication Date: 8/4/2021

Reference Information

CVE: CVE-2021-38115, CVE-2021-40145, CVE-2021-40812