{
  "cveId": "CVE-2021-40145",
  "url": "https://patchblox.com/security/cve/CVE-2021-40145",
  "summary": "CVE-2021-40145 is fixed in 2 products on 1 platform, first by libgd-tools 2.2.5-4ubuntu0.5, released August 25, 2021. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "libgd3: gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free",
  "description": "gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free. NOTE: the vendor\u0027s position is \u0022The 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.",
  "published": "2021-08-25T18:15:00Z",
  "severity": "Medium",
  "epss": 0.02134,
  "epssPercentile": 0.82106,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "libgd-tools",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.2.5-4ubuntu0.5",
      "fix": "libgd-tools 2.2.5-4ubuntu0.5",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-libgd-tools-2.2.5-4ubuntu0.5",
      "released": "2021-08-25T18:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libgd-tools",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "2.2.5-5.2ubuntu2.1",
      "fix": "libgd-tools 2.2.5-5.2ubuntu2.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-libgd-tools-2.2.5-5.2ubuntu2.1",
      "released": "2021-08-25T18:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libgd-tools",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.3.0-2ubuntu1",
      "fix": "libgd-tools 2.3.0-2ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libgd-tools-2.3.0-2ubuntu1",
      "released": "2021-08-25T18:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libgd3",
      "release": "Ubuntu 18.04.6 LTS (bionic)",
      "fixedVersion": "2.2.5-4ubuntu0.5",
      "fix": "libgd3 2.2.5-4ubuntu0.5",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-bionic-libgd3-2.2.5-4ubuntu0.5",
      "released": "2021-08-25T18:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libgd3",
      "release": "Ubuntu 20.04 LTS (focal)",
      "fixedVersion": "2.2.5-5.2ubuntu2.1",
      "fix": "libgd3 2.2.5-5.2ubuntu2.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-focal-libgd3-2.2.5-5.2ubuntu2.1",
      "released": "2021-08-25T18:15:00Z"
    },
    {
      "platform": "linux",
      "product": "libgd3",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.3.0-2ubuntu1",
      "fix": "libgd3 2.3.0-2ubuntu1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libgd3-2.3.0-2ubuntu1",
      "released": "2021-08-25T18:15:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}