CVE-2022-1325: Medium severity cimg vulnerability
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.
Other sources
In CImg 3.10, via a maliciously crafted 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.
Upstream issue:
https://github.com/dtschump/CImg/issues/343
— Red Hat
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is CVE-2022-1325?
CVE-2022-1325 is a vulnerability found in Clmg that allows an attacker to allocate huge buffer sizes by tricking the application with a malicious file.
What is the severity of CVE-2022-1325?
CVE-2022-1325 has a severity rating of medium with a score of 5.5.
How does CVE-2022-1325 work?
CVE-2022-1325 works by exploiting a flaw in Clmg that allows an attacker to modify certain header field values in a file, tricking the application into allocating large buffer sizes.
Which versions of Cimg are affected by CVE-2022-1325?
Versions of Cimg up to and excluding 3.1.0 are affected by CVE-2022-1325.
Is there a fix for CVE-2022-1325?
Yes, a fix has been released for CVE-2022-1325. It is recommended to update to the latest version of Cimg to mitigate the vulnerability.