CVE-2022-1122: Medium severity uclouvain openjpeg vulnerability

Published Mar 23, 2022
·
Updated

A flaw was found in OpenJPEG v2.4.0 in opj2decompress 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 DoS.

Reference: https://github.com/uclouvain/openjpeg/issues/1368

Upstream patch: https://github.com/uclouvain/openjpeg/commit/0afbdcf3e6d0d2bd2e16a0c4d513ee3cf86e460d

Other sources

A flaw was found in the opj2decompress 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.

— Launchpad

Affected Software

18 affected componentsFixes available
uclouvain openjpeg=2.4.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Debian Debian Linux=9.0
debian/openjpeg2<2.5.0-1
2.5.0-1
debian/openjpeg2<2.5.0-1
2.5.0-1
debian/openjpeg2<2.5.0-1
2.5.0-1
debian/openjpeg2
2.5.0-2+deb12u32.5.3-2.1~deb13u22.5.4-1.1
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0
alpine/openjpeg<2.5.0-r0
2.5.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/openjpeg2 to a version that resolves this vulnerability.

    Fixed in 2.5.0-2+deb12u3Fixed in 2.5.3-2.1~deb13u2Fixed in 2.5.4-1.1
  2. Upgrade

    Upgrade alpine/openjpeg to a version that resolves this vulnerability.

    Fixed in 2.5.0-r0
  3. Upgrade

    Upgrade debian/openjpeg2 to a version that resolves this vulnerability.

    Fixed in 2.5.0-1
  4. Upgrade

    Upgrade openjpeg2 to a version that resolves this vulnerability.

    Patch 0afbdcf3e6d0d2bd2e16a0c4d513ee3cf86e460d

Event History

Mar 23, 2022
Data Sourced
via Red Hat·06:18 AM
DescriptionSeverityAffected Software
Mar 29, 2022
CVE Published
via MITRE·05:25 PM
Data Sourced
via MITRE·05:25 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-1122?

CVE-2022-1122 is a vulnerability found in the opj2_decompress program in openjpeg2 2.4.0, which can lead to a segmentation fault.

2

What is the severity of CVE-2022-1122?

The severity of CVE-2022-1122 is medium with a severity value of 5.5.

3

How does CVE-2022-1122 affect Uclouvain Openjpeg?

CVE-2022-1122 affects Uclouvain Openjpeg version 2.4.0.

4

How can I fix CVE-2022-1122 in Uclouvain Openjpeg?

To fix CVE-2022-1122 in Uclouvain Openjpeg, update to a version that is not affected.

5

Where can I find more information about CVE-2022-1122?

More information about CVE-2022-1122 can be found at the following references: - [GitHub](https://github.com/uclouvain/openjpeg/issues/1368) - [Debian LTS Announce](https://lists.debian.org/debian-lts-announce/2022/04/msg00006.html) - [Fedora Project](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MIWSQFQWXDU4MT3XTVAO6HC7TVL3NHS7/)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203