Skip to main content
VulnerabilityPublished Updated

CVE-2026-42146: GreycLab CImg · Excessive Memory Allocation

Affects GreycLab CImgSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.5 Medium.

Data as of 1 Nov 2026, 22:58 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 7% 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:N/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
  • =< c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3
Fixed in–

AI-suggested

This vulnerability has been patched in commit c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3 of the CImg library. Users should upgrade to this version or later to remediate the issue. Since this is not a cloud service, remediation requires updating the library in affected applications. Patch status is confirmed by the referenced commit. No additional mitigation steps are indicated by the vendor.

Description

CImg Library is a C++ library for image processing. Prior to commit c3aacf5, the nb_colors field read from the BMP file header is used directly to compute an allocation size without validating it against the remaining file size. A crafted BMP file with a large nb_colors value triggers an out-of-memory condition, crashing any application that uses CImg to load untrusted BMP files. This issue has been patched via commit c3aacf5.

References

Community reviews

Loading reviews…