CVE-2021-40812 Information disclosure in n/a
An out-of-bounds read in LibGD allows attackers to disclose sensitive memory or cause a crash due to missing return value checks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-40812?
CVE-2021-40812 is a medium-severity vulnerability in n/a, published on 8 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-125
Which versions are affected by CVE-2021-40812?
It affects 1 product.
Linux distribution packages (11)
gd SUSE:Linux Enterprise Module for Basesystem 15 SP2 | All versions | 2.2.5-11.3.1 |
gd SUSE:Linux Enterprise Module for Basesystem 15 SP3 | All versions | 2.2.5-11.3.1 |
gd SUSE:Linux Enterprise Module for Desktop Applications 15 SP2 | All versions | 2.2.5-11.3.1 |
gd SUSE:Linux Enterprise Module for Desktop Applications 15 SP3 | All versions | 2.2.5-11.3.1 |
gd SUSE:Linux Enterprise Module for Package Hub 15 SP2 | All versions | 2.2.5-11.3.1 |
gd SUSE:Linux Enterprise Module for Package Hub 15 SP3 | All versions | 2.2.5-11.3.1 |
gd SUSE:Linux Enterprise Server 12 SP5 | All versions | 2.1.0-24.20.1 |
gd SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 2.1.0-24.20.1 |
gd SUSE:Linux Enterprise Software Development Kit 12 SP5 | All versions | 2.1.0-24.20.1 |
gd SUSE:Linux Enterprise Workstation Extension 12 SP5 | All versions | 2.1.0-24.20.1 |
gd openSUSE:Leap 15.3 | All versions | 2.2.5-11.3.1 |
Products include Libgd Libgd.
How do I fix CVE-2021-40812?
Apply the vendor's patch.
Is CVE-2021-40812 being exploited?
There is no known exploitation of CVE-2021-40812 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as AZL-6433, CLSA-2023-1689009763, CLSA-2026-1779823719, DEBIAN-CVE-2021-40812, GHSA-53w9-wg73-ghrw, JLSEC-2026-361 and 7 more.