Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 64%

CVE-2026-47667: CWE-401: Missing Release of Memory after Effective Lifetime in GreycLab CImg

0
High
VulnerabilityCVE-2026-47667cvecve-2026-47667cwe-401cwe-789cwe-1284
Published: 07/21/2026 (07/21/2026, 19:57:49 UTC)
Source: CVE Database V5
Vendor/Project: GreycLab
Product: CImg

Description

CImg Library versions prior to 4.0.0 contain a memory leak vulnerability in the _load_analyze() function when processing Analyze/NIfTI files. The vulnerability arises because the header_size field is read without bounds checking and used to allocate memory, which is not freed if a file read error occurs. This can lead to large memory allocations being leaked on error paths, causing denial of service due to resource exhaustion. The issue affects files with extensions .hdr, .img, or .nii. Version 4.0.0 addresses this vulnerability.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Affected versions
<4.0.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 05:17:21 UTC

Technical Analysis

The CImg Library before version 4.0.0 has a vulnerability (CVE-2026-47667) in the _load_analyze() function where the header_size field from an Analyze/NIfTI file is read as an unsigned int and used directly to allocate memory without validating it against the actual file size. If fread returns fewer bytes than expected due to a malformed file, the function throws an exception but does not free the allocated buffer, causing a memory leak. A crafted 6-byte file can trigger an allocation of approximately 1.3 GB per call, leaking memory on every error path. This affects the load_analyze() and generic load() functions for files with .hdr, .img, or .nii extensions. The vulnerability is fixed in version 4.0.0.

Potential Impact

This vulnerability can cause a denial of service by exhausting system memory through repeated memory leaks triggered by malformed input files. There is no impact on confidentiality or integrity reported. The CVSS score is 7.5 (high severity) with network attack vector, low attack complexity, no privileges required, no user interaction, and impact limited to availability.

Mitigation Recommendations

Upgrade to CImg version 4.0.0 or later, where this issue is fixed. There is no official patch advisory beyond this version update. Until upgraded, avoid processing untrusted Analyze/NIfTI files with extensions .hdr, .img, or .nii to prevent triggering the memory leak.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-19T21:10:38.797Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a5fd4a41010f89cc224946f

Added to database: 07/21/2026, 20:20:52 UTC

Last enriched: 07/30/2026, 05:17:21 UTC

Last updated: 09/03/2026, 22:52:12 UTC

Views: 88

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses