CVE-2026-118752

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

Published Oct 28, 2026 CVSS 4.0 · 8.5 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a heap buffer overflow in the PBM RLE decoder of PluginIFF.cpp caused by missing bounds checks on ByteRun1 runs. An attacker can supply a crafted IFF/LBM PBM file with runs straddling scanline ends to write up to 127 controlled bytes beyond the intended bitmap buffer, corrupting adjacent heap memory. This memory corruption can give the attacker the ability to execute arbitrary code or cause a denial of service if the corrupted data affects program flow.

Affected Systems

FreeImage library versions through 3.18.0 and the danoli3 FreeImage fork prior to 3.19.22 are affected. Applications that load or process IFF/LBM PBM images via these libraries are vulnerable until the flaw is addressed by upgrading or applying a fix.

Risk and Exploitability

The CVSS score of 8.5 classifies this as a high‑severity vulnerability, while the EPSS score of < 1% indicates a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers would need to supply a crafted IFF or LBM PBM file to the application using the library, either from local or remote sources that the application processes untrusted images. The overflow writes controlled bytes into the heap, potentially enabling arbitrary code execution or destabilizing the host if the corrupted memory affects critical data structures.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the danoli3 FreeImage fork v3.19.22 or newer, which includes the official fix.
  • If using the original FreeImage library, consider switching to the danoli3 fork as the reference library does not yet have a public fixed release.
  • Avoid processing untrusted IFF/LBM PBM files by disabling the PBM decoder if possible, or sanitize image inputs before decoding.

Generated by OpenCVE AI on November 3, 2026 at 00:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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. 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.
Title FreeImage before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder FreeImage through 3.18.0 and danoli3 fork before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder
References
Type Values Removed Values Added
First Time appeared Danoli3
Danoli3 freeimage
Vendors & Products Danoli3
Danoli3 freeimage
Type Values Removed Values Added
Description 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.
Title FreeImage before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder
First Time appeared Freeimage Project
Freeimage Project freeimage
Weaknesses CWE-787
CPEs cpe:2.3:a:freeimage_project:freeimage:*:*:*:*:*:*:*:*
Vendors & Products Freeimage Project
Freeimage Project freeimage
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 4:52 PM
Reserved
Oct 28, 2026, 7:13 PM
Status
Deferred
Published
Oct 28, 2026, 10:17 PM
Modified
Nov 5, 2026, 5:17 PM
Severity
Important
Public date
Oct 28, 2026, 9:11 PM