Cimg: Prior to commit 4ca26bc, there is an integer overflow vulnerability in the WHD size computation inside
Affects cimgSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 4 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10cimgpkg:deb/ubuntu/cimg?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10cimgpkg:deb/ubuntu/cimg?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu Pro 22.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
CImg Library is a C++ library for image processing. Prior to commit 4ca26bc, there is an integer overflow vulnerability in the W*H*D size computation inside _load_pnm() that can bypass the memory allocation guard. A crafted PNM/PGM/PPM file with large dimension values causes the overflow to wrap around, allocating an undersized buffer and potentially triggering a heap buffer overflow. Any application using CImg to load untrusted image files is affected. This issue has been patched via commit 4ca26bc.