Advisory Database
  • Advisories
  • Dependency Scanning
  1. conan
  2. ›
  3. openjpeg
  4. ›
  5. CVE-2022-1122

CVE-2022-1122: Access of Uninitialized Pointer

March 29, 2022 (updated November 7, 2023)

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.

References

  • github.com/uclouvain/openjpeg/issues/1368
  • github.com/uclouvain/openjpeg/pull/1369
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/
  • nvd.nist.gov/vuln/detail/CVE-2022-1122

Code Behaviors & Features

Detect and mitigate CVE-2022-1122 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

Version 2.4.0

Fixed versions

  • 2.5.0

Solution

Upgrade to version 2.5.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-665: Improper Initialization

Source file

conan/openjpeg/CVE-2022-1122.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.