Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.5

CVE-2022-1325: Clmg allocates huge buffer sizes with malicious BMP file

CVE-2022-1325 · published 4 years ago
Summary

A maliciously crafted image file can trick Clmg into allocating a large amount of memory, potentially leading to a denial-of-service or other issues. This vulnerability affects Clmg, which is used for image processing. To protect your system, update Clmg to the latest version or consider replacing it with a more secure alternative.

What to do
  • Update debian cimg to version 3.1.6+dfsg-1.
  • Update cimg cimg to version 3.1.0 or later.
Affected software
Ecosystem VendorProductAffected versions
Debian:12 debian cimg < 3.1.6+dfsg-1
Fix: upgrade to 3.1.6+dfsg-1
Debian:13 debian cimg < 3.1.6+dfsg-1
Fix: upgrade to 3.1.6+dfsg-1
Debian:14 debian cimg < 3.1.6+dfsg-1
Fix: upgrade to 3.1.6+dfsg-1
– cimg cimg < 3.1.0
cpe:2.3:a:cimg:cimg:*:*:*:*:*:*:*:*
Original advisory text
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 b...
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.
Severity
5.5 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-400Uncontrolled Resource Consumption
CWE-770Allocation of Resources Without Limits
Timeline
Published31 Aug 2022
Updated4 Nov 2026
First seen9 Jul 2026
Sources
CVE-2022-1325 · OSV
CVE-2022-1325 · NVD
Track software like this
Free during beta