Vulnerability Details : CVE-2021-40145
gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free. NOTE: the vendor's position is "The GD2 image format is a proprietary image format of libgd. It has to be regarded as being obsolete, and should only be used for development and testing purposes.
Vulnerability category: Memory Corruption
Products affected by CVE-2021-40145
- cpe:2.3:a:libgd:libgd:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-40145
0.21%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 59 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-40145
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2021-40145
-
The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-40145
-
https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af
Merge pull request #713 from me22bee/_gdImageGd2 · libgd/libgd@c5fd25c · GitHubPatch;Third Party Advisory
-
https://github.com/libgd/libgd/issues/700
gdImageGdPtr memory leak · Issue #700 · libgd/libgd · GitHubExploit;Issue Tracking;Third Party Advisory
-
https://github.com/libgd/libgd/pull/713
gdImageGd2Ptr memory leak by meweez · Pull Request #713 · libgd/libgd · GitHubIssue Tracking;Third Party Advisory
Jump to