# 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.

- Web page: https://patchblox.com/security/cve/CVE-2026-42146
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0018
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 4, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | CImg Fedora 43 | 1:3.7.6-2.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | CImg-devel Fedora 43 | 1:3.7.6-2.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | cimg Debian 13.5 (trixie) | 3.5.2+dfsg-1+deb13u1 | [DEBIAN-CVE-2026-42146](https://patchblox.com/security/data/fix/linux/debian-cve-2026-42146.md) | May 15, 2026 |
| Linux | cimg Debian 14 | 3.5.2+dfsg-2 | [DEBIAN-CVE-2026-42146](https://patchblox.com/security/data/fix/linux/debian-cve-2026-42146.md) | May 15, 2026 |
| Linux | gmic Fedora 43 | 3.7.6-3.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | gmic-debuginfo Fedora 43 | 3.7.6-3.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | gmic-debugsource Fedora 43 | 3.7.6-3.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | gmic-devel Fedora 43 | 3.7.6-3.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | gmic-gimp Fedora 43 | 3.7.6-3.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | gmic-libs Fedora 43 | 3.7.6-3.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |
| Linux | gmic-libs-debuginfo Fedora 43 | 3.7.6-3.fc43 | [FEDORA-2026-86596F9CBC](https://patchblox.com/security/data/fix/linux/fedora-2026-86596f9cbc.md) | May 20, 2026 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
