Skip to content
Heist/ feed
Back to feed
Unrated

Security advisory

Type: advisorySources: OSVCVE: 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. 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-1122
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 04:14 UTC · Revision 1

Source evidence

CVE-2022-1122

core-osv · Original source

Published 29 Mar 2022, 17:25 UTC

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.

osv:CVE-2022-1122
Complete source record
{
  "id": "da3a5370dec2a3aff0533d3fe2f0ee0cccab836c02a94d37cff7b4bad652abc0",
  "url": "https://osv.dev/vulnerability/CVE-2022-1122",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-1122",
    "summary": "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.",
    "evidence": "osv:CVE-2022-1122",
    "products": [],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-1122",
      "aliases": [
        "CVE-2022-1122"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/uclouvain/openjpeg",
              "type": "GIT",
              "events": [
                {
                  "introduced": "37ac30ceff6640bbab502388c5e0fa0bff23f505"
                },
                {
                  "last_affected": "37ac30ceff6640bbab502388c5e0fa0bff23f505"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.4.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "VersionTextExtraction"
                  },
                  {
                    "cpe": "cpe:2.3:a:uclouvain:openjpeg:2.4.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0"
                      },
                      {
                        "last_affected": "2.4.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.0",
            "v2.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-1122.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.591801880Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2025/04/msg00002.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1122.json",
        "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://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-1122",
        "https://security.gentoo.org/glsa/202209-04",
        "https://github.com/uclouvain/openjpeg/issues/1368",
        "https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-665"
        ],
        "cna_assigner": "redhat",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1122.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-1122",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 514588,
  "published_at": "2022-03-29T17:25:44+00:00"
}