Skip to main content
CVE-2026-42144VulnerabilityPublished Updated

Cimg: Prior to commit 4ca26bc, there is an integer overflow vulnerability in the WHD size computation inside

Affects cimgSource GCVE Database

0
Compare
Authoritative record:CVE-2026-42144· Medium 6.1

Not known to be exploited · CVSS 6.1 Medium.

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

References

Community reviews

Loading reviews…