Skip to main content
CVE-2026-42146VulnerabilityPublished Updated

Cimg: Prior to commit c3aacf5, the nb_colors field read from the BMP file header is used directly to compute an

Affects cimgSource GCVE Database

0
Compare
Authoritative record:CVE-2026-42146· Medium 5.5

Not known to be exploited · CVSS 5.5 Medium.

Data as of 24 Nov 2026, 21:15 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 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10cimgpkg:deb/ubuntu/cimg?arch=source&distro=stonkingOther threatsAffected
  • =3.5.2+dfsg-1build1
  • =3.5.2+dfsg-2
Fixed in–
Ubuntu 26.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=resoluteOther threatsAffected
  • =3.5.2+dfsg-1
  • =3.5.2+dfsg-1build1
Fixed in–
Ubuntu 25.10cimgpkg:deb/ubuntu/cimg?arch=source&distro=questingOther threatsAffected
  • =3.5.2+dfsg-1
Fixed in–
Ubuntu Pro 24.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/nobleOther threatsAffected
  • =3.2.1+dfsg-1
  • =3.2.1+dfsg-1ubuntu0.24.04.1~esm1
Fixed in–
Ubuntu Pro 22.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/jammyOther threatsAffected
  • =2.9.4+dfsg-2
  • =2.9.4+dfsg-3
  • =2.9.4+dfsg-3ubuntu0.1~esm1
Fixed in–
Ubuntu 20.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=focalOther threatsAffected
  • =2.4.5+dfsg-1
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 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…