5.5
MEDIUM
CVE-2022-1122
OpenJPEG2 Use-After-Free Directory Traversal Vulnerability
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.

INFO

Published Date :

March 29, 2022, 6:15 p.m.

Last Modified :

Nov. 21, 2024, 6:40 a.m.

Remotely Exploitable :

No

Impact Score :

3.6

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

CVE-2022-1122 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2022-1122 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fedoraproject fedora
1 Uclouvain openjpeg
1 Debian debian_linux

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

this is SosReverter experiments and codes

Python Shell

Updated: 7 months, 3 weeks ago
0 stars 0 fork 0 watcher
Born at : Jan. 15, 2024, 12:42 p.m. This repo has been linked 2 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-1122 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-1122 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/uclouvain/openjpeg/issues/1368
    Added Reference https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/
    Added Reference https://security.gentoo.org/glsa/202209-04
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Removed CWE Red Hat, Inc. CWE-824
  • CVE Modified by [email protected]

    Feb. 12, 2023

    Action Type Old Value New Value
    Changed Description A flaw was found in the opj2_decompress program in openjpeg2 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. 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.
    Removed CVSS V3.1 Red Hat, Inc. AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
    Removed Reference https://access.redhat.com/errata/RHSA-2022:7645 [No Types Assigned]
    Removed Reference https://access.redhat.com/errata/RHSA-2022:8207 [No Types Assigned]
    Removed Reference https://access.redhat.com/security/cve/CVE-2022-1122 [No Types Assigned]
    Removed Reference https://bugzilla.redhat.com/show_bug.cgi?id=2067052 [No Types Assigned]
    Added CWE Red Hat, Inc. CWE-824
    Added CWE Red Hat, Inc. CWE-665
  • CVE Modified by [email protected]

    Feb. 02, 2023

    Action Type Old Value New Value
    Changed 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. A flaw was found in the opj2_decompress program in openjpeg2 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.
    Added CVSS V3.1 Red Hat, Inc. AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/ [Mailing List, Third Party Advisory]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/ [Mailing List, Third Party Advisory]
    Removed Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/ [Mailing List, Third Party Advisory]
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/ [No Types Assigned]
    Added Reference https://access.redhat.com/security/cve/CVE-2022-1122 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2022:8207 [No Types Assigned]
    Added Reference https://access.redhat.com/errata/RHSA-2022:7645 [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/ [No Types Assigned]
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2067052 [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/ [No Types Assigned]
    Removed CWE Red Hat, Inc. CWE-824
    Removed CWE Red Hat, Inc. CWE-665
  • Modified Analysis by [email protected]

    Oct. 27, 2022

    Action Type Old Value New Value
    Changed Reference Type https://security.gentoo.org/glsa/202209-04 No Types Assigned https://security.gentoo.org/glsa/202209-04 Third Party Advisory
  • CVE Modified by [email protected]

    Sep. 07, 2022

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/202209-04 [No Types Assigned]
  • Modified Analysis by [email protected]

    Jun. 16, 2022

    Action Type Old Value New Value
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/ Mailing List, Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    May. 07, 2022

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/RMKBAMK2CAM5TMC5TODKVCE5AAPTD5YV/ [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 13, 2022

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/ [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 10, 2022

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html [No Types Assigned]
  • Initial Analysis by [email protected]

    Apr. 07, 2022

    Action Type Old Value New Value
    Added CVSS V2 Metadata Victim must voluntarily interact with attack mechanism
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:N/A:P)
    Added CVSS V3.1 NIST AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
    Changed Reference Type https://github.com/uclouvain/openjpeg/issues/1368 No Types Assigned https://github.com/uclouvain/openjpeg/issues/1368 Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/ Mailing List, Third Party Advisory
    Added CWE NIST CWE-665
    Added CWE NIST CWE-824
    Added CPE Configuration OR *cpe:2.3:a:uclouvain:openjpeg:2.4.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Mar. 31, 2022

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/ROSN5NRUFOH7HGLJ4ZSKPGAKLFXJALW4/ [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-1122 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-1122 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.12 }} -0.02%

score

0.47061

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability