Skip to main content
VulnerabilityPublished

CVE-2026-42144: GreycLab CImg · Integer Overflow or Wraparound

Affects GreycLab CImgSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.1 Medium.

Data as of 1 Nov 2026, 22:58 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GreycLabCImgAffected
  • =< 4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d
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

Community reviews

Loading reviews…