Description
A flaw was found in Clmg, where with the help of a maliciously crafted pandore or bmp file with modified dx and dy header field values it is possible to trick the application into allocating huge buffer sizes like 64 Gigabyte upon reading the file from disk or from a virtual buffer.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Clmg | Fixed in v3.1.0 | — |
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 | 3.1.6+dfsg-1 | — |
| Debian 13 | cimg | 3.1.6+dfsg-1 | — |
| Debian 12 | cimg | 3.1.6+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | cimg | No fix yet | — |
| Ubuntu 16.04 LTS | cimg | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | cimg | 3.2.1+dfsg-1ubuntu0.24.04.1~esm1 | USN-7437-1 |
| Ubuntu Pro 22.04 LTS | cimg | 2.9.4+dfsg-3ubuntu0.1~esm1 | USN-7437-1 |
| Ubuntu Pro 18.04 LTS | cimg | 1.7.9+dfsg-2ubuntu0.18.04.2+esm1 | USN-7437-1 |
Advisories 1
- USN-7437-1 cimg vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2074549
- https://huntr.dev/bounties/a5e4fc45-8f14-4dd1-811b-740fc50c95d2/
- https://github.com/GreycLab/CImg/issues/343
- https://github.com/GreycLab/CImg/pull/348
- https://github.com/GreycLab/CImg/commit/619cb58dd90b4e03ac68286c70ed98acbefd1c90
- https://access.redhat.com/security/cve/CVE-2022-1325