CVE-2026-42144: GreycLab CImg · Integer Overflow or Wraparound
Affects GreycLab CImgSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium.
Data as of 1 Nov 2026, 22:58 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 1 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| GreycLabCImg | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch addressing this vulnerability has been committed in CImg at commit 4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d. Users and developers should update to this fixed version or later to remediate the issue. Since this is a library vulnerability, applications using CImg should incorporate the patched library version before processing untrusted image files. No additional vendor advisory is available; patch status is confirmed by the commit reference.
Description
CVE-2026-42144 is an integer overflow vulnerability in the CImg library used for image processing. The flaw occurs in the size calculation of image dimensions within the _load_pnm() function, where large dimension values cause an overflow that bypasses memory allocation checks. This results in an undersized buffer allocation and can lead to a heap buffer overflow when loading crafted PNM/PGM/PPM image files. The vulnerability affects all versions of CImg prior to commit 4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d. A patch addressing this issue has been committed. The CVSS score is 6.1, indicating a medium severity level. No known exploits are reported in the wild, and the product is not a cloud service.
References
- github.com/GreycLab/CImg/security/advisories/GHSA-4663-63fm-44gc (opens in a new tab)
- github.com/GreycLab/CImg/issues/478 (opens in a new tab)
- github.com/GreycLab/CImg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d (opens in a new tab)
- github.com/GreycLab/CImg/releases/tag/v.3.7.5 (opens in a new tab)