Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-42146 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

Description

CImg Library is a C++ library for image processing. Prior to commit c3aacf5, the nb_colors field read from the BMP file header is used directly to compute an allocation size without validating it against the remaining file size. A crafted BMP file with a large nb_colors value triggers an out-of-memory condition, crashing any application that uses CImg to load untrusted BMP files. This issue has been patched via commit c3aacf5.

Metrics

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

Weakness Enumeration

CWE-IDCWE NameSource
CWE-789Memory Allocation with Excessive Size Value[email protected]

Affected Products

ProductVersions
GreycLab CImg
< c3aacf5

CPE

  • cpe:2.3:a:cimg:cimg:*:*:*:*:*:*:*:*
  • cpe:2.3:a:cimg:cimg_library:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: c3aacf5moderate effort
  • Mitigation:low effort

    Do not load untrusted BMP files with CImg.

Change History

4 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-42146
NVD Published Date:
May 4, 2026
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2026-42146 Details - Not Deferred