Double Free in libgd - CVE-2021-40145

 

Double Free in libgd - CVE-2021-40145

Published: April 6, 2023


Vulnerability identifier: #VU74503
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2021-40145
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
libgd
Software vendor:
GD Software

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the gdImageGd2Ptr() function in gd_gd2.c. A remote attacker can pass specially crafted data to the application, trigger double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Remediation

Install updates from vendor's website.

External links