CVE-2022-1325: Medium severity cimg vulnerability

Published Apr 12, 2022
·
Updated

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

2 affected componentsFixes available
CImg cimg<3.1.0
debian/cimg<=2.9.4+dfsg-2
3.2.1+dfsg-13.5.2+dfsg-1

Event History

Apr 12, 2022
Data Sourced
via Red Hat·01:24 PM
DescriptionSeverityAffected Software
Aug 31, 2022
CVE Published
via MITRE·03:33 PM
Data Sourced
via MITRE·03:33 PM
DescriptionWeakness
Apr 15, 2025
Data Sourced
via Ubuntu·06:45 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·06:46 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

What is the severity of CVE-2022-1325?

CVE-2022-1325 has a severity rating of medium with a score of 5.5.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203