CVE-2026-118752Danoli3 FreeImage out-of-bounds write
CVSS score
8.5
High
CVSS 4.0 from vulncheck.com
Exploit probability (EPSS)
0.28%
0.28% chance of exploitation in the next 30 days, higher than 21.0% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: disclosure@vulncheck.com
How to fix it, step by step
Check whether you're affected
Find every system running danoli3 FreeImage and compare its version with the affected versions.
Update to a fixed version
- Update FreeImage to 3.19.22 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Passive
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| danoli3 FreeImage | < 3.19.22 |
| FreeImage FreeImage | ≤ 3.18.0 |
Weakness
- CWE-787 out-of-bounds write
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-118752 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-118752?
CVE-2026-118752 has a CVSS 4.0 base score of 8.5 (high).
Which versions are affected?
Danoli3 FreeImage (< 3.19.22), Freeimage FreeImage (≤ 3.18.0)
Is there a patch for CVE-2026-118752?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/danoli3/FreeImage
- github.com/danoli3/FreeImage/blob/3.19.21/Source/FreeImage/PluginIFF.cpp#L296-L324
- github.com/danoli3/FreeImage/commit/cf173c16354274dc8fb739dc395fc7f32efe7d45
- github.com/danoli3/FreeImage/commit/e1105d3b464b679f0525c6178d9ccf49d55cf712
- github.com/danoli3/FreeImage/issues/156
- github.com/danoli3/FreeImage/pull/161
- github.com/danoli3/FreeImage/pull/244
- github.com/danoli3/FreeImage/releases/tag/3.19.22
- sourceforge.net/p/freeimage/patches/198/
- sourceforge.net/projects/freeimage/
- www.vulncheck.com/advisories/freeimage-before-3.19.22-heap-buffer-overflow-via-iff-lbm-pbm-rle-decoder
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.