CVE-2026-118752
FreeImage through 3.18.0 and danoli3 fork before 3.19.22 Heap Buffer Overflow via IFF/LBM PBM RLE Decoder
Mitigation
- Upgrade FreeImage to 3.19.22 or later.
Who should check
- Anyone running danoli3 FreeImage < 3.19.22
- Anyone running FreeImage <= 3.18.0
Vulnerability facts
- Affected
- danoli3 FreeImage < 3.19.22; FreeImage <= 3.18.0
- Fixed in
- danoli3 FreeImage 3.19.22
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.5 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: Passive
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-787
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-118752. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-118752.md Affected: danoli3 FreeImage < 3.19.22; FreeImage <= 3.18.0 Fixed in: danoli3 FreeImage 3.19.22 Steps: 1. Search this machine and project for danoli3 FreeImage, FreeImage: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://github.com/danoli3/FreeImage/pull/161
- https://github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712
- https://github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45
- https://github.com/danoli3/FreeImage/pull/244
- https://sourceforge.net/p/freeimage/patches/198/
Exploits and PoCs
FAQ
Is CVE-2026-118752 being exploited?
There is no confirmed exploitation: CVE-2026-118752 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-118752?
High: CVSS 8.5 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-118752?
danoli3 FreeImage < 3.19.22; FreeImage <= 3.18.0.
Is there a fix for CVE-2026-118752?
Yes. Fixed in danoli3 FreeImage 3.19.22. Upgrade FreeImage to 3.19.22 or later.
How do I check if I'm affected by CVE-2026-118752?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.