# CVE-2026-42144: cimg: CImg Library is a C++ library for image processing

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

- Web page: https://patchblox.com/security/cve/CVE-2026-42144
- Priority: Routine
- CVSS: 6.1 (medium)
- EPSS: 0.0014
- 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 4ca26bc, there is an integer overflow vulnerability in the W*H*D size computation inside _load_pnm() that can bypass the memory allocation guard. A crafted PNM/PGM/PPM file with large dimension values causes the overflow to wrap around, allocating an undersized buffer and potentially triggering a heap buffer overflow. Any application using CImg to load untrusted image files is affected. This issue has been patched via commit 4ca26bc.

## 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-42144](https://patchblox.com/security/data/fix/linux/debian-cve-2026-42144.md) | May 15, 2026 |
| Linux | cimg Debian 14 | 3.5.2+dfsg-2 | [DEBIAN-CVE-2026-42144](https://patchblox.com/security/data/fix/linux/debian-cve-2026-42144.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 |
| Linux | krita Fedora 43 | 5.2.16-2.fc43 | [FEDORA-2026-45B342F7C1](https://patchblox.com/security/data/fix/linux/fedora-2026-45b342f7c1.md) | Jun 19, 2026 |
| Linux | krita-debuginfo Fedora 43 | 5.2.16-2.fc43 | [FEDORA-2026-45B342F7C1](https://patchblox.com/security/data/fix/linux/fedora-2026-45b342f7c1.md) | Jun 19, 2026 |
| Linux | krita-debugsource Fedora 43 | 5.2.16-2.fc43 | [FEDORA-2026-45B342F7C1](https://patchblox.com/security/data/fix/linux/fedora-2026-45b342f7c1.md) | Jun 19, 2026 |

---

Data as of 2026-11-09T07:25:28Z 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.
