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.
No summary for this CVE yet.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:RUser InteractionRequired
Scope
S:UScopeUnchanged
Impact
C:NConfidentialityNone
I:NIntegrityNone
A:HAvailabilityHigh
Weaknesses
Affected Products
Сообщество свободного программного обеспечения
oss-projectaka fsf
ООО «РусБИТех-Астра»
commercial·RUaka rusbitech-astra
Thomas Boutell
individual-dev·USaka cgic, gd library, libgd
АО «ИВК»
commercial·RUaka ivk
АО «НППКТ»
commercial·RU
libgd
oss-projectaka gd graphics library
and 1 more affected products View all →
Exploitability
Official Patch Available
Attack Graph
Products CVE Techniques Tactics
Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/⌘ + scroll to zoom, or go fullscreen.
MITRE ATT&CK
1 technique Collection
References
https://github.com/libgd/libgd/commit/6f5136821be86e7068fcdf651ae9420b5d42e9a9
github.com
https://github.com/libgd/libgd/issues/750#issuecomment-914872385
github.com
https://nvd.nist.gov/vuln/detail/CVE-2021-40812
nvd.nist.gov
and 8 more references View all →
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2021-40812 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows
