Live threats

All CVEs / Libgd

CVE-2021-40812Libgd

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
No
Published
Sep 8, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libgd.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
libgdlibgd≤ 2.3.2

Official sources

References

Links published by the sources. Open them with care.