# CVE-2026-118752: FreeImage through 3.18.0 and danoli3 fork before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-28T21:11:21.485Z
- Modified: 2026-11-05T17:17:55.527Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- danoli3 FreeImage: before 3.19.22
- FreeImage FreeImage: up to 3.18.0

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/danoli3/FreeImage/issues/156> (exploit, issue-tracking)
- <https://github.com/danoli3/FreeImage> (product)
- <https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324> (technical-description)
- <https://github.com/danoli3/FreeImage/pull/161> (issue-tracking, patch)
- <https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712> (patch)
- <https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45> (patch)
- <https://github.com/danoli3/FreeImage/releases/tag/3.19.22> (release-notes)
- <https://github.com/danoli3/FreeImage/pull/244> (release-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-decoder> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-118752](https://www.cve.org/CVERecord?id=CVE-2026-118752), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2026-118752](https://nvd.nist.gov/vuln/detail/CVE-2026-118752), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-118752 · Whole record: https://cve.day/CVE-2026-118752.json · Rebuilt by cve.day 2026-11-25T22:59:47.699Z
