CVE-2026-47667
Last modified
CVE-2026-47667 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.43% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| GreycLab | CImg | < 4.0.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-47667?
How severe is CVE-2026-47667?
How do I fix CVE-2026-47667?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-4766The Easy Image Gallery plugin for WordPress is vulnerable to…6.4
- CVE-2026-47660Pathling is a set of tools that make it easier to use FHIR a…8.7
- CVE-2026-47661Pathling is a set of tools that make it easier to use FHIR a…8.7
- CVE-2026-47662Pathling is a set of tools that make it easier to use FHIR a…8.7
- CVE-2026-47663Pathling is a set of tools that make it easier to use FHIR a…8.7
- CVE-2026-47664Pathling is a set of tools that make it easier to use FHIR a…8.6
- CVE-2026-47668DbGate is cross-platform database manager. In versions 7.1.8…10
- CVE-2026-47669DbGate is cross-platform database manager. In versions 7.1.8…9.3
- CVE-2026-4767Missing authentication for critical function vulnerability i…9.8
- CVE-2026-47670DbGate is cross-platform database manager. Versions 7.1.8 an…9.4
- CVE-2026-47671Nhost is an open source Firebase alternative with GraphQL. I…5.4
- CVE-2026-47672epa4all-client is the Java Client for epa4all / ePA 3.0 in t…6.5
Are you affected by CVE-2026-47667?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
