CVE-2026-118752
JSON

8.5high

FreeImage through 3.18.0 and danoli3 fork before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder

Severity
8.5high CVSS:4.0 by VulnCheck
Exploit likelihood
0.28% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
danoli3 FreeImagebefore 3.19.22CVE List
FreeImage FreeImageup to 3.18.0CVE List

All scores

VulnCheck8.5high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

https://github.com/danoli3/FreeImage/issues/156exploit, issue-tracking
https://github.com/danoli3/FreeImageproduct
https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324technical-description
https://github.com/danoli3/FreeImage/pull/161issue-tracking, patch
https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712patch
https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45patch
https://github.com/danoli3/FreeImage/releases/tag/3.19.22release-notes
https://github.com/danoli3/FreeImage/pull/244release-notes
https://sourceforge.net/projects/freeimage/product
https://sourceforge.net/p/freeimage/patches/198/issue-tracking, patch
https://www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoderthird-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-118752 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-118752 changed 2026-11-05Public domain