
CVE catalog
CVE-2026-42144
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 allo
- Severity
- High · CVSS 8.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.14% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cimg | sid | 4.0.4+dfsg-1 | fixed |
| Debian | cimg | forky | 4.0.4+dfsg-1 | fixed |
| Debian | cimg | trixie | 3.5.2+dfsg-1+deb13u1 | fixed |
| Debian | cimg | bookworm | 3.2.1+dfsg-1 | vulnerable |
| Cpe | cimg | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cimg | source | sid | 3.5.2+dfsg-2 | not yet assigned | Not reported | [1135778] |
| Debian | cimg | source | forky | 3.5.2+dfsg-2 | not yet assigned | Not reported | [1135778] |
| Debian | cimg | source | trixie | 3.5.2+dfsg-1+deb13u1 | not yet assigned | Not reported | [1135778] |
| Debian | cimg | source | bookworm | (unfixed) | not yet assigned | Not reported | [1135778] |
Notes
[bookworm] cimg: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [cimg-dev]Affected
Source package: [cimg]
Details (2)
3.2.1+dfsg-1· all · bookwormAffected
nvd · cimg · debian · bookworm; nvd · cimg · debian · 12
3.2.1+dfsg-1· all · bookwormAffected
nvd · cimg · debian · bookworm; nvd · cimg · debian · 12
- [cimg-doc]Affected
Source package: [cimg]
Details (2)
3.2.1+dfsg-1· all · bookwormAffected
nvd · cimg · debian · bookworm; nvd · cimg · debian · 12
3.2.1+dfsg-1· all · bookwormAffected
nvd · cimg · debian · bookworm; nvd · cimg · debian · 12
- [cimg-examples]Affected
Source package: [cimg]
Details (2)
3.2.1+dfsg-1· all · bookwormAffected
nvd · cimg · debian · bookworm; nvd · cimg · debian · 12
3.2.1+dfsg-1· all · bookwormAffected
nvd · cimg · debian · bookworm; nvd · cimg · debian · 12
[Debian 13 (Trixie)]
- [cimg-dev]Fixed
Source package: [cimg]
Details (2)
3.5.2+dfsg-1+deb13u1· all · trixieFixed · Fixed:
3.5.2+dfsg-1+deb13u1nvd · cimg · debian · 13
3.5.2+dfsg-1+deb13u1· all · trixieFixed · Fixed:
3.5.2+dfsg-1+deb13u1nvd · cimg · debian · 13
- [cimg-doc]Fixed
Source package: [cimg]
Details (2)
3.5.2+dfsg-1+deb13u1· all · trixieFixed · Fixed:
3.5.2+dfsg-1+deb13u1nvd · cimg · debian · 13
3.5.2+dfsg-1+deb13u1· all · trixieFixed · Fixed:
3.5.2+dfsg-1+deb13u1nvd · cimg · debian · 13
- [cimg-examples]Fixed
Source package: [cimg]
Details (2)
3.5.2+dfsg-1+deb13u1· all · trixieFixed · Fixed:
3.5.2+dfsg-1+deb13u1nvd · cimg · debian · 13
3.5.2+dfsg-1+deb13u1· all · trixieFixed · Fixed:
3.5.2+dfsg-1+deb13u1nvd · cimg · debian · 13
Observed:
References
- [https://github.com/GreycLab/CImg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d]
- [https://github.com/GreycLab/CImg/issues/478]
- [https://github.com/GreycLab/CImg/releases/tag/v.3.7.5]
- [https://github.com/GreycLab/CImg/security/advisories/GHSA-4663-63fm-44gc]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-42144]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-42144]
- [https://security-tracker.debian.org/tracker/CVE-2026-42144]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42144.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]