{"id":"CVE-2026-118752","summary":"FreeImage through 3.18.0 and danoli3 fork before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder","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.","modified":"2026-11-07T02:31:11.764222570Z","published":"2026-10-28T21:11:21.485Z","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"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/danoli3/freeimage","events":[{"introduced":"0"},{"fixed":"546cf69fb061bf1cdcfcdd5c61f5853cbfe5f6cc"},{"fixed":"e1105d3b464b679f0525c6178d9ccf49d55cf712"},{"fixed":"cf173c16354274dc8fb739dc395fc7f32efe7d45"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"3.19.22"}],"source":"AFFECTED_FIELD"},{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"3.18.0"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"e1105d3b464b679f0525c6178d9ccf49d55cf712"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"cf173c16354274dc8fb739dc395fc7f32efe7d45"}]},{"source":"REFERENCES_TAG","original_tag":"3.19.22","range":[{"fixed":"546cf69fb061bf1cdcfcdd5c61f5853cbfe5f6cc"}]}]}}],"versions":["3.19.21","3.19.20","3.19.19","3.19.18","3.19.17","3.19.16","3.19.15","3.19.14","3.19.13","3.19.12","3.19.11","3.19.10","3.19.9","3.19.8","3.19.7","3.19.6","3.19.5","3.19.4","3.19.3","3.19.2","3.18.10","3.18.9","3.18.8","3.18.7","3.18.6","3.18.5","3.18.4","3.18.3","3.18.2","3.18.1","3.18.0","3.16.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118752.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","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"}]}