### [CVE-2021-40145](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-40145) ![](https://img.shields.io/static/v1?label=Product&message=n%2Fa&color=blue) ![](https://img.shields.io/static/v1?label=Version&message=n%2Fa%20&color=brightgreen) ![](https://img.shields.io/static/v1?label=Vulnerability&message=n%2Fa&color=brightgreen) ### Description 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. ### POC #### Reference - https://github.com/libgd/libgd/issues/700 - https://github.com/libgd/libgd/pull/713 #### Github - https://github.com/fkie-cad/nvd-json-data-feeds - https://github.com/n0-traces/cve_monitor