{"id":"CVE-2026-118752","state":"PUBLISHED","title":"FreeImage before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder","description":"FreeImage (danoli3 fork) before 3.19.22 contains 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.","publishedAt":"2026-10-28T21:11:21.485Z","updatedAt":"2026-10-28T21:11:21.485Z","severity":{"score":8.5,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["danoli3 FreeImage","FreeImage FreeImage"],"affected":[{"vendor":"danoli3","product":"FreeImage","packageURL":"pkg:github/danoli3/FreeImage","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.19.22","versionType":"semver"}],"collectionURL":"https://github.com","repo":"https://github.com/danoli3/FreeImage"},{"vendor":"FreeImage","product":"FreeImage","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"3.18.0","versionType":"semver"}]}],"references":["https://github.com/danoli3/FreeImage/issues/156","https://github.com/danoli3/FreeImage","https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324","https://github.com/danoli3/FreeImage/pull/161","https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712","https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45","https://github.com/danoli3/FreeImage/releases/tag/3.19.22","https://www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoder"],"weaknesses":["CWE-787"],"ingestedAt":"2026-10-29T20:10:52.580Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/118xxx/CVE-2026-118752.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-118752","state":"PUBLISHED","datePublished":"2026-10-28T21:11:21.485Z","dateUpdated":"2026-10-28T21:11:21.485Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-28T19:13:08.429Z"},"containers":{"cna":{"title":"FreeImage before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder","descriptions":[{"lang":"en","value":"FreeImage (danoli3 fork) before 3.19.22 contains 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."}],"affected":[{"vendor":"danoli3","product":"FreeImage","packageURL":"pkg:github/danoli3/FreeImage","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.19.22","versionType":"semver"}],"collectionURL":"https://github.com","repo":"https://github.com/danoli3/FreeImage"},{"vendor":"FreeImage","product":"FreeImage","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"3.18.0","versionType":"semver"}]}],"references":[{"url":"https://github.com/danoli3/FreeImage/issues/156","tags":["issue-tracking"],"name":"GitHub Issue #156"},{"url":"https://github.com/danoli3/FreeImage","tags":["product"]},{"url":"https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324","tags":["technical-description"]},{"url":"https://github.com/danoli3/FreeImage/pull/161","tags":["patch","issue-tracking"]},{"url":"https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712","tags":["patch"]},{"url":"https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45","tags":["patch"]},{"url":"https://github.com/danoli3/FreeImage/releases/tag/3.19.22","tags":["release-notes"],"name":"FreeImage 3.19.22 Release Notes"},{"url":"https://www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoder","name":"VulnCheck Advisory: FreeImage before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.5,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-10-28T21:11:21.485Z"},"datePublic":"2026-10-12T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:freeimage_project:freeimage:*:*:*:*:*:*:*:*","versionEndIncluding":"3.18.0"}]}]}],"credits":[{"lang":"en","value":"areofyl","type":"finder"},{"lang":"en","value":"Tristan Madani","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}