---
title: "CVE-2026-118752: FreeImage - Buffer Overflow"
description: "FreeImage (danoli3 fork) < 3.19.22 contains a heap buffer overflow caused by lack of bounds checks on ByteRun1 runs in PBM RLE decoder of PluginIFF.cpp, letting attackers write beyond heap buffer with crafted IFF/LBM PBM files, exploit requires crafted file input."
url: https://panop.io/threat-heartbeat/CVE-2026-118752/
---

# CVE-2026-118752 FreeImage - Buffer Overflow

FreeImage (danoli3 fork) < 3.19.22 contains a heap buffer overflow caused by lack of bounds checks on ByteRun1 runs in PBM RLE decoder of PluginIFF.cpp, letting attackers write beyond heap buffer with crafted IFF/LBM PBM files, exploit requires crafted file input.

CVSS base score 7.8 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-118752)

## Details

Type

Buffer Overflow

Impact

Remote Code Execution, Denial Of Service

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Published

28 October 2026

Updated

29 October 2026

Weakness

[CWE-787](https://cwe.mitre.org/data/definitions/787.html)

## Vendor fix

Update to version 3.19.22 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-118752](https://nvd.nist.gov/vuln/detail/CVE-2026-118752)
- [https://github.com/danoli3/FreeImage/releases/tag/3.19.22](https://github.com/danoli3/FreeImage/releases/tag/3.19.22)
- [https://www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoder](https://www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoder)
- [https://github.com/danoli3/FreeImage](https://github.com/danoli3/FreeImage)
- [https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324](https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324)
- [https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45](https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45)
- [https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712](https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712)
- [https://github.com/danoli3/FreeImage/issues/156](https://github.com/danoli3/FreeImage/issues/156)
- [https://github.com/danoli3/FreeImage/pull/161](https://github.com/danoli3/FreeImage/pull/161)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
