# CVE-2026-118752: FreeImage heap buffer overflow in PBM RLE decoder

Source: https://junglewise.ai/threats/cve-2026-118752-freeimage-danoli3-fork-before-3-19-22-contains-a-heap-buffer  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-28. Updated: 2026-10-28  
License: CC BY 4.0 with a link back

CVE-2026-118752 · Severity: high · CVSS 7.8 · Published 2026-10-28

FreeImage is an image processing library used in many applications to load and manipulate graphics files. A vulnerability in the IFF/LBM image file parser allows an attacker to craft a malicious image file that writes uncontrolled data beyond allocated memory when the file is opened, potentially leading to program crashes, data corruption, or code execution.

Technologies: [Danoli3 FreeImage](https://junglewise.ai/threats/technologies/danoli3-freeimage). Vendors: [Danoli3](https://junglewise.ai/threats/vendors/danoli3).

## Quick answers

**Is CVE-2026-118752 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-118752 being exploited in the wild.

**How severe is CVE-2026-118752?** High severity, with a CVSS score of 7.8, published 28 October 2026.

**Which products and versions are affected?** Danoli3 FreeImage before 3.19.22.

**Is there a fix for CVE-2026-118752?** Yes: fixed in 3.19.22. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-118752 attacked?** It is attacked over the network or with local access, in a software library.

**Am I affected by CVE-2026-118752?** Check whether you run Danoli3 FreeImage at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 3.19.22

## Technical details

The PBM RLE decoder in PluginIFF.cpp fails to validate that ByteRun1 run-length encoding runs do not exceed scanline boundaries, allowing heap buffer overflow. An attacker can supply a crafted IFF/LBM file with runs that straddle scanline ends to write up to 127 controlled bytes past the heap-allocated bitmap. This requires the victim to open the malicious file with an application using the vulnerable FreeImage library.

## Affected products

- danoli3 FreeImage before 3.19.22

## Timeline

- 2026-10-28: disclosed

## References

- [https://github.com/](https://github.com/)
- [https://github.com/danoli3/FreeImage](https://github.com/danoli3/FreeImage)

## Related threats

- [FreeImage (danoli3 fork) heap buffer overflow in GIF decoding](https://junglewise.ai/threats/cve-2026-118753-freeimage-danoli3-fork-before-3-19-25-contains-a-heap-buffer)
- [FreeImage heap out-of-bounds read in PICT parsing](https://junglewise.ai/threats/cve-2026-111149-freeimage-danoli3-fork-through-3-19-23-contains-a-heap-out-of)
