VDB

CVE-2022-1122

CVE-2022-1122 PUBLISHED CVSS 5.5 MEDIUM

Reported by redhat · Published March 29, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
openjpeg2-toolsAmazon Linux2.4.0-11.amzn2023.0.3, 2.4.0-5.amzn2
openjpegAlpine2.5.0-r0
openjpeg2-develAmazon Linux2.4.0-5.amzn2
openjpeg2Amazon Linux2.4.0-11.amzn2023.0.3

Risk scores

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

Affected products

VendorProductVersions
n/aopenjpeg2openjpeg2 version 2.4.0 and prior
amazon:2openjpeg2-tools0
alpineopenjpeg0
amazon:2openjpeg2-devel0
amazon:2023openjpeg20
amazon:2023openjpeg2-tools0
n/aopenjpeg22.4.0
amazon:2023openjpeg2-devel-docs0
ConanCenteropenjpeg2.4.0
amazon:2openjpeg20
amazon:2openjpeg2-devel-docs0
amazon:2023openjpeg2-devel0

Timeline

  • Mar 29, 2022 CVE Published
  • Mar 30, 2022 EPSS Score (30 in total, the first dated here)
  • May 1, 2023 CVE Updated
  • Mar 17, 2026 Security Advisory (5 in total, the first dated here)
  • Jun 1, 2026 Distribution Patch (3 in total, the first dated here)
  • Jul 11, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-1122
vulnetix vdb fixes CVE-2022-1122

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-1122/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›