6.5

CVE-2021-40812: libgd Out-of-bounds Read

Modified
AliasesMGASA-2021-0449SUSE-SU-2021:3214-1SUSE-SU-2021:3236-1
Published 08-09-2021Last modified 29-10-2024

Vulnerability summary

CVE-2021-40812 is a medium (CVSS 6.5) Out-of-bounds Read vulnerability in libgd. EPSS estimates a 1.66% chance of exploitation in the next 30 days, higher than 76.6% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.66%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 2

Timeline

  1. 08-09-2021
    PublishedVulnerability first disclosed.
  2. 29-10-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

1.66%

Chance of exploitation in the next 30 days

Percentile

77%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.66% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Suse10 products
  • gd&distro=SUSE Linux Enterprise Module for Basesystem 15 SP2< 2.2.5-11.3.1
  • gd&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3< 2.2.5-11.3.1
  • gd&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP2< 2.2.5-11.3.1
  • gd&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP3< 2.2.5-11.3.1
  • gd&distro=SUSE Linux Enterprise Module for Package Hub 15 SP2< 2.2.5-11.3.1
Debian1 product
  • libgd2< 2.3.3-1
Libgd1 product
Mageia1 product
  • libgd< 2.3.1-1.3.mga8
Opensuse1 product
  • gd&distro=openSUSE Leap 15.3< 2.2.5-11.3.1
Ubuntu1 product
  • libgd2< 2.1.1-4ubuntu0.16.04.12+esm4 | < 2.2.5-4ubuntu0.5+esm3 | < 2.2.5-5.2ubuntu2.4 | < 2.3.0-2ubuntu2.3 | All versions (No fix recorded)

6 vendors · 15 products

References

15 links
Show all 15 references