Description
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.
References10
- github.com/danoli3/FreeImage
- github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/Plug…
- github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395…
- github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9…
- github.com/danoli3/FreeImage/issues/156
- github.com/danoli3/FreeImage/pull/161
- github.com/danoli3/FreeImage/pull/244
- github.com/danoli3/FreeImage/releases/tag/3.19.22
- sourceforge.net/p/freeimage/patches/198/
- sourceforge.net/projects/freeimage/
Metrics
- CVSS 3.1
-
7.8
HIGH
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 4.0
-
8.5
HIGH
Score source: CNA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 4 · as of 4 November 2026
- CWE
- CWE-787
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.