CVE-2026-42146

cimg: CImg Library is a C++ library for image processing

CVE-2026-42146 is fixed in 10 products on 1 platform, first by DEBIAN-CVE-2026-42146, released May 15, 2026. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
5.5
medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0018
7th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
CImg · Fedora 43 1:3.7.6-2.fc43 FEDORA-2026-86596F9CBC May 20, 2026
CImg-devel · Fedora 43 1:3.7.6-2.fc43 FEDORA-2026-86596F9CBC May 20, 2026
cimg · Debian 13.5 (trixie) 3.5.2+dfsg-1+deb13u1 DEBIAN-CVE-2026-42146 May 15, 2026
cimg · Debian 14 3.5.2+dfsg-2 DEBIAN-CVE-2026-42146 May 15, 2026
gmic · Fedora 43 3.7.6-3.fc43 FEDORA-2026-86596F9CBC May 20, 2026
gmic-debuginfo · Fedora 43 3.7.6-3.fc43 FEDORA-2026-86596F9CBC May 20, 2026
gmic-debugsource · Fedora 43 3.7.6-3.fc43 FEDORA-2026-86596F9CBC May 20, 2026
gmic-devel · Fedora 43 3.7.6-3.fc43 FEDORA-2026-86596F9CBC May 20, 2026
gmic-gimp · Fedora 43 3.7.6-3.fc43 FEDORA-2026-86596F9CBC May 20, 2026
gmic-libs · Fedora 43 3.7.6-3.fc43 FEDORA-2026-86596F9CBC May 20, 2026
gmic-libs-debuginfo · Fedora 43 3.7.6-3.fc43 FEDORA-2026-86596F9CBC May 20, 2026

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.