Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2021-40145
CBL Mariner vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-40145 affects the GD Graphics Library (LibGD) through version 2.3.2. The issue specifically involves a double free vulnerability in the gdImageGd2Ptr function in gd_gd2.c. The vulnerability was discovered and disclosed in August 2021 (NVD, Snyk).

Technical details

The vulnerability exists in the gdImageGd2Ptr function within gdgd2.c file of LibGD. It occurs when certain conditions in gdImageGd2 lead to failure, causing the output buffer to be incorrectly allocated, which subsequently results in a double free condition when gdDPExtractData is called. The vulnerability has a CVSS v3.1 base score of 7.5 (High), with attack vector being Network, attack complexity Low, and no privileges or user interaction required (Snyk).

Impact

The vulnerability can lead to a total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component. This loss can be either sustained while the attack continues or persistent even after the attack has completed (Snyk).

Mitigation and workarounds

The vulnerability has been fixed in newer versions of the library. Users should upgrade to LibGD version 2.3.3 or higher. For Ubuntu users, specific fixed versions are available: Ubuntu 14.04 should upgrade to version 2.1.0-3ubuntu0.11+esm2 or higher (Snyk). The vendor notes that the GD2 image format is proprietary to libgd and should be considered obsolete, recommended only for development and testing purposes (NVD).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management