CVE-2021-38115
CBL Mariner vulnerability analysis and mitigation

Overview

CVE-2021-38115 affects the GD Graphics Library (LibGD) through version 2.3.2. The vulnerability was discovered in the readheadertga function in gd_tga.c, which allows remote attackers to cause a denial of service through an out-of-bounds read when processing crafted TGA files. The vulnerability was disclosed on August 4, 2021 (NVD).

Technical details

The vulnerability exists in the readheadertga function within gd_tga.c, specifically related to the handling of TGA file headers. The issue occurs when processing the identifier size field of TGA files, where there is insufficient validation of the gdGetBuf return value. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can lead to a denial of service condition through an out-of-bounds read operation. The impact is primarily on the availability of systems processing TGA images using affected versions of LibGD (NVD).

Mitigation and workarounds

The vulnerability has been fixed in LibGD version 2.3.3. The fix involves adding proper validation checks for the gdGetBuf return value in the readheadertga function. Users are advised to upgrade to version 2.3.3 or later to address this vulnerability (GitHub Patch).

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