Description
A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading to heap buffer overflows in load_pnm() can be triggered by a specially crafted input file processed by CImg, which can lead to an impact to application availability or data integrity.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | CImg | CImg versions before 2.9.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cimg | 2.9.4+dfsg-2 | — |
| Debian 13 | cimg | 2.9.4+dfsg-2 | — |
| Debian 12 | cimg | 2.9.4+dfsg-2 | — |
| Debian 9 | cimg | 1.7.9+dfsg-1+deb9u2 | DLA-2462-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | cimg | No fix yet | — |
Advisories 1
- DLA-2462-1 cimg - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1893377
- FEDORA-2021-ca1151e997 vendor-advisory
- FEDORA-2021-bc6585e31a vendor-advisory
- FEDORA-2021-2aaba884af vendor-advisory