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.
Published: 2026-10-28
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: Memory corruption that can lead to arbitrary code execution
Action: Immediate Patch
AI Analysis

Impact

FreeImage, a popular image processing library, contains a heap buffer overflow located in the PBM RLE decoder within PluginIFF.cpp. The overflow arises from missing bounds checks on ByteRun1 run lengths, allowing an attacker to supply a crafted IFF/LBM PBM file with runs that cross scanline boundaries and write up to 127 bytes past the allocated bitmap buffer. This memory corruption could overwrite adjacent heap data, potentially leading to arbitrary code execution, privilege escalation, or denial‑of‑service if the corrupted data influences control flow.

Affected Systems

All releases of FreeImage 3.19.21 and earlier, including the danoli3 fork up to version 3.19.21, are affected. The vulnerability is not present in FreeImage 3.19.22 or later, as the issue was fixed in that release. The affected product is the FreeImage library as packaged by the FreeImage project and the danoli3 fork.

Risk and Exploitability

Basing on the CVSS score of 8.5, the vulnerability is considered high severity. The EPSS score is not available, so we cannot estimate current exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a file‑based supply of a malicious IFF/LBM PBM image, either locally by a user exploiting an application that uses FreeImage or remotely if the application processes image files from untrusted network sources. Because the overflow writes controlled bytes into the heap, a well‑positioned attacker could leverage surrounding memory to achieve arbitrary code execution, though the limited write size requires careful exploitation.

Generated by OpenCVE AI on October 28, 2026 at 22:23 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FreeImage to version 3.19.22 or later.
  • Prevent or reject processing of untrusted IFF/LBM PBM files in applications that use the library.
  • Implement input validation to enforce maximum run lengths or sandbox image parsing to contain potential memory corruption.

Generated by OpenCVE AI on October 28, 2026 at 22:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 28 Oct 2026 21:30:00 +0000

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'}


Subscriptions

Freeimage Project Freeimage
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-28T21:11:21.485Z

Reserved: 2026-10-28T19:13:08.429Z

Link: CVE-2026-118752

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-28T22:17:13.857

Modified: 2026-10-28T22:17:13.997

Link: CVE-2026-118752

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-28T22:30:12Z

Weaknesses