Heap buffer overflow in FreeImage IFF/LBM PBM decoder
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-787 and the CVSS impact.
Summary
FreeImage through 3.18.0 and the danoli3 FreeImage fork before 3.19.22 contain a heap buffer overflow in the PBM RLE decoder of PluginIFF.cpp. The decoder lacks bounds checks on ByteRun1 runs, which allows an out-of-bounds write (CWE-787). A local attacker with no privileges can make a user open a crafted IFF/LBM PBM file that writes up to 127 controlled bytes past the heap-allocated bitmap.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The danoli3 FreeImage fork fixes this in version 3.19.22. The sources list no fixed version for FreeImage.
Written with Claude Haiku 5.5 from the sources below · 2026-11-05
- Fix · CNA FreeImage (danoli3) Fixed in 3.19.22
Vendor assessments
Timeline
- 2026-10-28 Threatist record created from CVE-2026-118752
- 2026-10-29 Alias added: GHSA-pqw8-2jmw-8f2c
- 2026-10-30 Priority changed: MEDIUM → LOW
- 2026-10-30 Affected versions changed · Red Hat
- 2026-10-30 CVSS score added · Red Hat
- 2026-11-02 Title updated · CNA
- 2026-11-02 3 new references · CNA
- 2026-11-05 CISA SSVC decision points changed
- 2026-11-05 Priority changed: LOW → HIGH
References
Patch 4
More danoli3 vulnerabilities
- TI-2026-74933 Heap out-of-bounds read in FreeImage PICT plugin CVSS 4.0MEDIUM 6.9
- TI-2026-82222 Heap buffer overflow in FreeImage GIF loading with GIF_PLAYBACK CVSS 4.0HIGH 8.5
Sources
- CVE-2026-118752 · CVE Program
- CVE-2026-118752 · NVD
- FIRST EPSS
- GHSA-pqw8-2jmw-8f2c · GitHub Advisory Database · CC BY 4.0
- CVE-2026-118752 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences