CVE & CISA-KEV Catalog

CVE-2021-40812

MEDIUMEPSS 74th pctl
6.5
CVSS v3
NVD

Description

The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.

How to fix

Remediation Available
libgd2Debian
Fixed in:2.3.0-2+deb11u1CVE-2021-40812
Fixed in:2.3.3-1CVE-2021-40812
Fixed in:2.3.3-1CVE-2021-40812
Fixed in:2.3.3-1CVE-2021-40812
libgd-devUbuntu
Fixed in:2.1.1-4ubuntu0.16.04.12+esm4USN-7112-1
Fixed in:2.2.5-4ubuntu0.5+esm3USN-7112-1
Fixed in:2.2.5-5.2ubuntu2.4USN-7112-1
Fixed in:2.3.0-2ubuntu2.3USN-7112-1
libgd-toolsUbuntu
Fixed in:2.1.1-4ubuntu0.16.04.12+esm4USN-7112-1
Fixed in:2.2.5-4ubuntu0.5+esm3USN-7112-1
Fixed in:2.2.5-5.2ubuntu2.4USN-7112-1
Fixed in:2.3.0-2ubuntu2.3USN-7112-1
libgd2Ubuntu
Fixed in:2.1.1-4ubuntu0.16.04.12+esm4USN-7112-1
Fixed in:2.2.5-4ubuntu0.5+esm3USN-7112-1
Fixed in:2.2.5-5.2ubuntu2.4USN-7112-1
Fixed in:2.3.0-2ubuntu2.3USN-7112-1
libgd3Ubuntu
Fixed in:2.1.1-4ubuntu0.16.04.12+esm4USN-7112-1
Fixed in:2.2.5-4ubuntu0.5+esm3USN-7112-1
Fixed in:2.2.5-5.2ubuntu2.4USN-7112-1
Fixed in:2.3.0-2ubuntu2.3USN-7112-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Exploit Intelligence

1.66%probability of exploitation in 30 days
74thpercentile

Elevated risk: more likely to be exploited than 74% of all known CVEs.

References

Related Vulnerabilities

Other CWE-125 (Out-of-bounds Read) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2014-0160High7.5100%KEVFix
CVE-2025-5777High7.5100%KEV + RansomFix
CVE-2021-4034High7.895%KEVFix
CVE-2023-21769High7.592%-Fix
CVE-2023-49285High8.689%-Fix
CVE-2020-8794Critical9.889%-Fix
Embed a live status badge for CVE-2021-40812
CVE-2021-40812 severity badge

Markdown

[![CVE-2021-40812](https://tridentstack.com/cve/badge/CVE-2021-40812.svg)](https://tridentstack.com/cve/CVE-2021-40812)

HTML

<a href="https://tridentstack.com/cve/CVE-2021-40812"><img src="https://tridentstack.com/cve/badge/CVE-2021-40812.svg" alt="CVE-2021-40812"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.