CVE-2026-118752
FreeImage (danoli3 fork) before 3.19.22 contains a heap buffer …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/danoli3/FreeImage
- github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324
- github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45
- github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712
- github.com/danoli3/FreeImage/issues/156
- github.com/danoli3/FreeImage/pull/161
- github.com/danoli3/FreeImage/releases/tag/3.19.22
- www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm
- nvd.nist.gov/vuln/detail/CVE-2026-118752
- cve.org/CVERecord?id=CVE-2026-118752
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.