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
Published · last modified .
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.
EPSS exploit prediction
EPSS: 0.017 (75.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 76th percentile — 75.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.017 · newest: 0.017 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9 (Patch, Third Party Advisory)
- github.com/libgd/libgd/issues/750 (Patch, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/04/msg00003.html (mailing-list)
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.