CVE-2021-40812
MEDIUMCVSS 6.5/10EPSS 1.54%
Last modified
CVE-2021-40812 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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.. EPSS estimates a 1.54% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Libgd | Libgd | <= 2.3.2 |
References
- https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9Patch, Third Party Advisory
- https://github.com/libgd/libgd/issues/750#issuecomment-914872385Patch, Third Party Advisory
- https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9Patch, Third Party Advisory
- https://github.com/libgd/libgd/issues/750#issuecomment-914872385Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is 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.
How severe is CVE-2021-40812?
CVE-2021-40812 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 1.54% probability of exploitation in the next 30 days.
How do I fix CVE-2021-40812?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-40795Adobe Premiere Pro versions 22.0 (and earlier) and 15.4.2 (a…7.8
- CVE-2021-40796Adobe Premiere Pro 15.4.1 (and earlier) is affected by a Nul…5.5
- CVE-2021-40797An issue was discovered in the routes middleware in OpenStac…6.5
- CVE-2021-4080crater is vulnerable to Unrestricted Upload of File with Dan…8.8
- CVE-2021-40809An issue was discovered in Jamf Pro before 10.32.0, aka PI-0…8.8
- CVE-2021-4081pimcore is vulnerable to Improper Neutralization of Input Du…6.1
- CVE-2021-40813A cross-site scripting (XSS) vulnerability in the "Zip conte…5.4
- CVE-2021-40814The Customer Photo Gallery addon before 2.9.4 for PrestaShop…9.8
- CVE-2021-40818scheme/webauthn.c in Glewlwyd SSO server through 2.5.3 has a…9.8
- CVE-2021-4082pimcore is vulnerable to Cross-Site Request Forgery (CSRF)4.3
- CVE-2021-40822GeoServer through 2.18.5 and 2.19.x through 2.19.2 allows SS…7.5
- CVE-2021-40823A logic error in the room key sharing functionality of matri…5.9
Are you affected by CVE-2021-40812?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
