{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "3.19.25"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.18.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "96f4099f8e307484ba69b4aa14d772b7679a1bfb"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "0da5ddb4d311e5222251348cca1aa988478b1034"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "3.19.25",
                "range": [
                  {
                    "fixed": "363311f106e3fa50e9c39fcc80afe832cb26eabb"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "363311f106e3fa50e9c39fcc80afe832cb26eabb"
            },
            {
              "fixed": "96f4099f8e307484ba69b4aa14d772b7679a1bfb"
            },
            {
              "fixed": "0da5ddb4d311e5222251348cca1aa988478b1034"
            }
          ],
          "repo": "https://github.com/danoli3/freeimage",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118753.json"
  },
  "details": "FreeImage through 3.18.0 and the danoli3 FreeImage fork before 3.19.25 contain a heap buffer overflow vulnerability in PluginGIF.cpp that allows attackers to write past the canvas allocation via unclipped GIF frame rectangles. Attackers can craft a GIF whose frame left plus width exceeds the logical screen width, causing GifPlaybackCompositeFrame() and GifPlaybackFillRect() to corrupt heap memory when loaded with GIF_PLAYBACK.",
  "id": "CVE-2026-118753",
  "modified": "2026-11-04T02:30:22.262822522Z",
  "published": "2026-10-28T21:11:22.192Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com"
    },
    {
      "type": "WEB",
      "url": "https://sourceforge.net/projects/freeimage/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118753.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/danoli3/FreeImage/pull/244"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/danoli3/FreeImage/releases/tag/3.19.25"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118753"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/freeimage-danoli3-fork-before-3.19.25-heap-buffer-overflow-via-gif-playback-compositing"
    },
    {
      "type": "FIX",
      "url": "https://github.com/danoli3/FreeImage/commit/0da5ddb4d311e5222251348cca1aa988478b1034"
    },
    {
      "type": "FIX",
      "url": "https://github.com/danoli3/FreeImage/commit/96f4099f8e307484ba69b4aa14d772b7679a1bfb"
    },
    {
      "type": "FIX",
      "url": "https://github.com/danoli3/FreeImage/pull/183"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/danoli3/FreeImage"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/danoli3/FreeImage/blob/3.19.24/Source/FreeImage/PluginGIF.cpp#L719-L772"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "FreeImage through 3.18.0 and danoli3 fork before 3.19.25 Heap Buffer Overflow via GIF_PLAYBACK Compositing"
}