CVE-2021-40812
CBL Mariner vulnerability analysis and mitigation

Overview

CVE-2021-40812 is a security vulnerability discovered in the GD Graphics Library (LibGD) affecting versions through 2.3.2. The vulnerability was disclosed on September 8, 2021, and involves an out-of-bounds read vulnerability caused by the lack of certain gdGetBuf and gdPutBuf return value checks (NVD, CVE).

Technical details

The vulnerability is classified as a medium severity issue with a CVSS v3.1 base score of 6.5. The attack vector is network-based (AV:N), requires low attack complexity (AC:L), needs no privileges (PR:N), requires user interaction (UI:R), has an unchanged scope (S:U), and while it doesn't impact confidentiality or integrity, it has a high impact on availability (C:N/I:N/A:H) (NVD).

Impact

The vulnerability can lead to an out-of-bounds read condition in the application, potentially causing denial of service. This affects the availability of systems using the GD Graphics Library, particularly when processing image files (Debian Tracker).

Mitigation and workarounds

Multiple distributions have released patches to address this vulnerability. Ubuntu has fixed the issue in versions 2.3.0-2ubuntu2.3 for 22.04 LTS, 2.2.5-5.2ubuntu2.4 for 20.04 LTS, and 2.2.5-4ubuntu0.5+esm3 for 18.04 LTS. Debian has addressed the vulnerability in version 2.3.3-9 for bookworm and 2.3.3-12 for sid/trixie (Ubuntu Security, Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related CBL Mariner vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62689HIGH8.7
  • NixOSNixOS
  • libmicrohttpd-devel
NoYesNov 10, 2025
CVE-2025-59777HIGH8.7
  • NixOSNixOS
  • libmicrohttpd-doc
NoYesNov 10, 2025
CVE-2025-47913HIGH7.5
  • PackerPacker
  • container-tools:rhel8::buildah-tests
NoYesNov 13, 2025
CVE-2024-47866HIGH7.5
  • CBL MarinerCBL Mariner
  • ceph
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules
NoYesNov 21, 2025

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