PT-2026-62078 · Unknown · Cimg Library

CVE-2026-47667

·

Published

2026-07-21

·

Updated

2026-07-21

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions CImg Library versions prior to 4.0.0
Description In the load analyze() function, the header size field is read as an unsigned int from the first 4 bytes of an Analyze/NIfTI file and used to allocate a buffer via new unsigned char[header size] without verifying it against the actual file size. If a malformed file causes the subsequent fread() function to return a short value, a CImgIOException is thrown, and the allocated buffer is not freed. This can lead to significant memory leaks, where a small crafted file can trigger an allocation of approximately 1.3 GB per call. This issue is accessible through the load analyze() function and the generic load() function when processing files with .hdr, .img, or .nii extensions.
Recommendations Update to version 4.0.0.

Exploit

Fix

Memory Leak

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-47667
GHSA-RMFC-GRGJ-QWHV

Affected Products

Cimg Library