What’s Vulnerable › Vulnerabilities
CVE-2022-1325
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-08-31 · updated 2026-06-17
- Weakness: CWE-400
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
- Cimg: before 3.1.0 — fixed in 3.1.0
How to fix
Upgrade to a fixed version: Cimg 3.1.0. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/security/cve/CVE-2022-1325
- https://bugzilla.redhat.com/show_bug.cgi?id=2074549
- https://github.com/GreycLab/CImg/commit/619cb58dd90b4e03ac68286c70ed98acbefd1c90
- https://github.com/GreycLab/CImg/issues/343
- https://github.com/GreycLab/CImg/pull/348
- https://huntr.dev/bounties/a5e4fc45-8f14-4dd1-811b-740fc50c95d2/
- https://access.redhat.com/security/cve/CVE-2022-1325
- https://bugzilla.redhat.com/show_bug.cgi?id=2074549
- https://github.com/GreycLab/CImg/commit/619cb58dd90b4e03ac68286c70ed98acbefd1c90
- https://github.com/GreycLab/CImg/issues/343
- https://github.com/GreycLab/CImg/pull/348
- https://huntr.dev/bounties/a5e4fc45-8f14-4dd1-811b-740fc50c95d2/
Get alerted when CVE-2022-1325 or the next vulnerability affects your stack