CVE-2022-1325
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | cimg | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | cimg | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | cimg | Fix pending | 2.9.4+dfsg-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-1325 |
| Ubuntu 20.04 | cimg | Fix pending | UBUNTU-CVE-2022-1325 | |
| Ubuntu 18.04 | cimg | Fix pending | UBUNTU-CVE-2022-1325 | |
| Ubuntu 16.04 | cimg | Fix pending | UBUNTU-CVE-2022-1325 | |
| Ubuntu 14.04 | cimg | Fix pending | ||
| Debian 14 | cimg | Fixed | 3.1.6+dfsg-1 | DEBIAN-CVE-2022-1325 |
| Debian 13 | cimg | Fixed | 3.1.6+dfsg-1 | DEBIAN-CVE-2022-1325 |
| Debian 12 | cimg | Fixed | 3.1.6+dfsg-1 | DEBIAN-CVE-2022-1325 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Clmg: affected: Fixed in v3.1.0
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.