CVE & CISA-KEV Catalog

CVE-2022-1122

MEDIUM
5.5
CVSS v3
NVD

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.

How to fix

Remediation Available
openjpeg2Amazon
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
openjpeg2-debuginfoAmazon
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
openjpeg2-debugsourceAmazon
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
openjpeg2-develAmazon
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
openjpeg2-devel-docsAmazon
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-11.amzn2023.0.3
openjpeg2-toolsAmazon
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-5.amzn2
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
openjpeg2-tools-debuginfoAmazon
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
Fixed in:0:2.4.0-11.amzn2023.0.3
openjpeg2Debian
Fixed in:2.5.0-1CVE-2022-1122
Fixed in:2.5.0-1CVE-2022-1122
Fixed in:2.5.0-1CVE-2022-1122
libopenjp2-7Ubuntu
Fixed in:2.1.2-1.1+deb9u6ubuntu0.1~esm6USN-7083-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.3.0-2+deb10u2ubuntu0.1~esm3USN-7083-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.3.1-1ubuntu4.20.04.3USN-7083-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:2.4.0-6ubuntu0.2USN-7083-1
Fixed in:2.5.0-2ubuntu0.2USN-7083-1
libopenjp3d7Ubuntu
Fixed in:2.1.2-1.1+deb9u6ubuntu0.1~esm6USN-7083-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.3.0-2+deb10u2ubuntu0.1~esm3USN-7083-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.3.1-1ubuntu4.20.04.3USN-7083-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:2.4.0-6ubuntu0.2USN-7083-1
libopenjpip7Ubuntu
Fixed in:2.1.2-1.1+deb9u6ubuntu0.1~esm6USN-7083-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.3.0-2+deb10u2ubuntu0.1~esm3USN-7083-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.3.1-1ubuntu4.20.04.3USN-7083-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:2.4.0-6ubuntu0.2USN-7083-1
Fixed in:2.5.0-2ubuntu0.2USN-7083-1
openjpeg2Ubuntu
Fixed in:2.1.2-1.1+deb9u6ubuntu0.1~esm6USN-7083-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:2.3.0-2+deb10u2ubuntu0.1~esm3USN-7083-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:2.3.1-1ubuntu4.20.04.3USN-7083-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:2.4.0-6ubuntu0.2USN-7083-1
Fixed in:2.5.0-2ubuntu0.2USN-7083-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

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

Exploit Intelligence

1.10%probability of exploitation in 30 days
64thpercentile

Moderate risk: more likely to be exploited than 64% of all known CVEs.

References

Related Vulnerabilities

Other CWE-665 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-0847High7.890%KEVFix
CVE-2022-22719High7.570%-Fix
CVE-2020-28019High7.562%-Fix
CVE-2022-46164Critical9.449%-Fix
CVE-2022-37128Critical9.821%--
CVE-2019-14271Critical9.819%-Fix

Common questions

How do I fix CVE-2022-1122?

Published advisories record a fix for 12 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2022-1122 being actively exploited?

Not that we know of. CVE-2022-1122 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 1.1% is the estimated probability that it will be exploited in the next 30 days. That is higher than 64% of all scored CVEs.

How severe is CVE-2022-1122?

CVE-2022-1122 has a CVSS v3 base score of 5.5, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-1122 affect?

Published advisories record a fix for openjpeg2 (Amazon), openjpeg2-debuginfo (Amazon), openjpeg2-debugsource (Amazon), openjpeg2-devel (Amazon), and 8 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-1122
CVE-2022-1122 severity badge

Markdown

[![CVE-2022-1122](https://tridentstack.com/cve/badge/CVE-2022-1122.svg)](https://tridentstack.com/cve/CVE-2022-1122)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-1122"><img src="https://tridentstack.com/cve/badge/CVE-2022-1122.svg" alt="CVE-2022-1122"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.