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

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. 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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.