CVE-2026-118752
FreeImage before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder
- State
- Published
- Severity
- 8.5 High
- Published
- Oct 28, 2026
- Updated
- Oct 28, 2026
- Reserved
- Oct 28, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.5 High | 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 | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-787 Out-of-bounds Write
Affected Products
| Product | Versions |
|---|---|
FreeImagedanoli3 |
|
FreeImageFreeImage |
|
References
- GitHub Issue #156issue-tracking
- https://github.com/danoli3/FreeImageproduct
- https://github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324technical-description
- https://github.com/danoli3/FreeImage/pull/161patchissue-tracking
- https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712patch
- https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45patch
- FreeImage 3.19.22 Release Notesrelease-notes
- VulnCheck Advisory: FreeImage before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoderthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.