{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "3.19.22"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.18.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "e1105d3b464b679f0525c6178d9ccf49d55cf712"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "cf173c16354274dc8fb739dc395fc7f32efe7d45"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "3.19.22",
                "range": [
                  {
                    "fixed": "546cf69fb061bf1cdcfcdd5c61f5853cbfe5f6cc"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "546cf69fb061bf1cdcfcdd5c61f5853cbfe5f6cc"
            },
            {
              "fixed": "e1105d3b464b679f0525c6178d9ccf49d55cf712"
            },
            {
              "fixed": "cf173c16354274dc8fb739dc395fc7f32efe7d45"
            }
          ],
          "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-118752.json"
  },
  "details": "FreeImage through 3.18.0 and the danoli3 FreeImage fork before 3.19.22 contain a heap buffer overflow vulnerability in the PBM RLE decoder of PluginIFF.cpp that lacks bounds checks on ByteRun1 runs. Attackers can supply a crafted IFF/LBM PBM file with runs straddling scanline ends to write up to 127 controlled bytes past the heap-allocated bitmap.",
  "id": "CVE-2026-118752",
  "modified": "2026-11-07T02:31:11.764222570Z",
  "published": "2026-10-28T21:11:21.485Z",
  "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-118752.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/danoli3/FreeImage/pull/244"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/danoli3/FreeImage/releases/tag/3.19.22"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118752"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoder"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/danoli3/FreeImage/issues/156"
    },
    {
      "type": "FIX",
      "url": "https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45"
    },
    {
      "type": "FIX",
      "url": "https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712"
    },
    {
      "type": "FIX",
      "url": "https://github.com/danoli3/FreeImage/pull/161"
    },
    {
      "type": "FIX",
      "url": "https://sourceforge.net/p/freeimage/patches/198/"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/danoli3/FreeImage"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324"
    }
  ],
  "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.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder"
}