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.
CVE-2022-1122 - Medium Severity Vulnerability
Vulnerable Library - openjpeg5875a6b44618fb7dfd5cd6d742533eaee2014060
Official repository of the OpenJPEG project
Library home page: https://github.com/uclouvain/openjpeg.git
Found in base branch: master
Vulnerable Source Files (1)
/src/bin/jp2/opj_decompress.c
Vulnerability Details
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.
Publish Date: 2022-03-29
URL: CVE-2022-1122
CVSS 3 Score Details (5.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Local - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Release Date: 2022-03-29
Fix Resolution: v2.5.0
Step up your Open Source Security Game with Mend here