Skip to content
Heist/ feed
Back to feed
MediumFix available

openjpeg2 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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
openjpeg2
Affected versions
Not specified
Fixed versions
2.5.0-1
CVEs
CVE-2022-1122
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:39 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-1122

core-osv · Original source

Published 29 Mar 2022, 18:15 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:DEBIAN-CVE-2022-1122

openjpeg2

Fixed versions: 2.5.0-1

openjpeg2

Fixed versions: 2.5.0-1

openjpeg2

Fixed versions: 2.5.0-1

Complete source record
{
  "id": "2ddbea9b98af8fe30244c362d1e7cc84c033685e9f3ba43fcbd21030f49c0a03",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-1122",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-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:DEBIAN-CVE-2022-1122",
    "products": [
      {
        "name": {
          "value": "openjpeg2",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.5.0-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openjpeg2",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.5.0-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "openjpeg2",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.5.0-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2022-1122",
      "aliases": [
        "DEBIAN-CVE-2022-1122"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.5.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "openjpeg2",
            "purl": "pkg:deb/debian/openjpeg2?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-1122.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.5.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "openjpeg2",
            "purl": "pkg:deb/debian/openjpeg2?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-1122.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.5.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "openjpeg2",
            "purl": "pkg:deb/debian/openjpeg2?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-1122.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:01:15.716643267Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-1122"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-1122"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-1122",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 322868,
  "published_at": "2022-03-29T18:15:07.977+00:00"
}