Skip to main content
CVE-2026-47667VulnerabilityPublished Updated

Cimg: Prior to version 4.0.0

Affects cimgSource GCVE Database

0
Compare
Authoritative record:CVE-2026-47667· High 7.5

Not known to be exploited · CVSS 7.5 High.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Jul 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 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–
Ubuntu Pro 18.04 LTScimgpkg:deb/ubuntu/cimg?arch=source&distro=esm-apps/bionicOther threatsAffected
  • 1.7.9+dfsg-2 – 1.7.9+dfsg-2ubuntu0.18.04.2+esm1
5 affected builds
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 version 4.0.0 in `_load_analyze()`, the header_size field is read as an `unsigned int` from the first 4 bytes of an Analyze/NIfTI file and passed directly to `new unsigned char[header_size]` without being bounded against the actual file size. A value up to ~4 GB is accepted. If the subsequent `fread` returns `short` as it will for any malformed file), the function throws a `CImgIOException` and the allocated buffer is never freed. A 6-byte crafted file is sufficient to trigger an allocation of ~1.3 GB per call, with the full allocation leaked on every error path. The issue is reachable via `load_analyze()` and the generic `load()` when the file extension is .hdr, .img, or .nii. Version 4.0.0 fixes the issue.

References

Community reviews

Loading reviews…