Out-of-bounds Read in Libgd

CVE-2021-40812

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.

Vulnerability class: Buffer Overflow

EPSS: 0.017 (74.2th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

Affected products

  • Libgd
  • N/a — versions n/a

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-40812?
CVE-2021-40812 is a medium-severity vulnerability in Libgd, classified under Out-of-bounds Read. CVSS score: 6.5/10. Published 2021-09-08.
How severe is CVE-2021-40812?
Medium severity. CVSS v3 base score is 6.5 out of 10.
Is CVE-2021-40812 known to be exploited?
2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.