CVE & CISA-KEV Catalog

CVE-2026-42146

MEDIUM
5.5
CVSS v3
NVD

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.

How to fix

Remediation Available
cimgDebian
Fixed in:3.5.2+dfsg-1+deb13u1CVE-2026-42146
Fixed in:3.5.2+dfsg-2CVE-2026-42146

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Exploit Intelligence

0.12%probability of exploitation in 30 days
2ndpercentile

Low risk: more likely to be exploited than 2% of all known CVEs.

References

Embed a live status badge for CVE-2026-42146
CVE-2026-42146 severity badge

Markdown

[![CVE-2026-42146](https://tridentstack.com/cve/badge/CVE-2026-42146.svg)](https://tridentstack.com/cve/CVE-2026-42146)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-42146"><img src="https://tridentstack.com/cve/badge/CVE-2026-42146.svg" alt="CVE-2026-42146"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-07.