The Openjpeg Project Openjpeg2 vulnerabilities

67 known vulnerabilities affecting the_openjpeg_project/openjpeg2.

Total CVEs
67
CISA KEV
0
Public exploits
1
Exploited in wild
0
Severity breakdown
CRITICAL4HIGH27MEDIUM36

Vulnerabilities

Page 1 of 4
CVE-2025-50952MEDIUMCVSS 6.5≥ 0, < 2.4.0-3+deb11u2≥ 0, < 2.5.0-2+deb12u2+1 more2025-08-07
CVE-2025-50952 [MEDIUM] CVE-2025-50952: openjpeg v 2 openjpeg v 2.5.0 was discovered to contain a NULL pointer dereference via the component /openjp2/dwt.c.
osv
CVE-2025-54874MEDIUMCVSS 6.6≥ 0, < 2.5.3-2.1~deb13u1≥ 0, < 2.5.3-2.12025-08-05
CVE-2025-54874 [MEDIUM] CVE-2025-54874: OpenJPEG is an open-source JPEG 2000 codec OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG from 2.5.1 through 2.5.3, a call to opj_jp2_read_header may lead to OOB heap memory write when the data stream p_stream is too short and p_image is not initialized.
osv
CVE-2024-56827MEDIUMCVSS 5.6≥ 0, < 2.4.0-3+deb11u1≥ 0, < 2.5.0-2+deb12u1+1 more2025-01-09
CVE-2024-56827 [MEDIUM] CVE-2024-56827: A flaw was found in the OpenJPEG project A flaw was found in the OpenJPEG project. A heap buffer overflow condition may be triggered when certain options are specified while using the opj_decompress utility. This can lead to an application crash or other undefined behavior.
osv
CVE-2024-56826MEDIUMCVSS 5.6≥ 0, < 2.4.0-3+deb11u1≥ 0, < 2.5.0-2+deb12u1+1 more2025-01-09
CVE-2024-56826 [MEDIUM] CVE-2024-56826: A flaw was found in the OpenJPEG project A flaw was found in the OpenJPEG project. A heap buffer overflow condition may be triggered when certain options are specified while using the opj_decompress utility. This can lead to an application crash or other undefined behavior.
osv
CVE-2021-29338MEDIUMCVSS 5.5≥ 0, < 2.1.2-1.1+deb9u6ubuntu0.1~esm6≥ 0, < 2.3.0-2+deb10u2ubuntu0.1~esm3+3 more2024-11-05
CVE-2021-29338 [MEDIUM] openjpeg2 vulnerabilities openjpeg2 vulnerabilities It was discovered that OpenJPEG incorrectly handled certain memory operations when using the command line "-ImgDir" in a directory with a large number of files, leading to an integer overflow vulnerability. An attacker could potentially use this issue to cause a denial of service. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2021-29338) It was discovered that
osv
CVE-2022-1122MEDIUMCVSS 5.5vopenjpeg2 version 2.4.0 and prior2022-03-29
CVE-2022-1122 [MEDIUM] CWE-665 CVE-2022-1122: A flaw was found in the opj2_decompress program in openjpeg2 2 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.
cvelistv5osv
CVE-2021-3575HIGHCVSS 7.8≥ 0, < 2.4.0-3+deb11u1≥ 0, < 2.5.0-2+deb12u1+1 more2022-03-04
CVE-2021-3575 [HIGH] CVE-2021-3575: A heap-based buffer overflow was found in openjpeg in color A heap-based buffer overflow was found in openjpeg in color.c:379:42 in sycc420_to_rgb when decompressing a crafted .j2k file. An attacker could use this to execute arbitrary code with the permissions of the application compiled against openjpeg.
osv
CVE-2020-27823HIGHCVSS 7.8≥ 0, < 2.4.0-12021-05-13
CVE-2020-27823 [HIGH] CVE-2020-27823: A flaw was found in OpenJPEG’s encoder A flaw was found in OpenJPEG’s encoder. This flaw allows an attacker to pass specially crafted x,y offset input to OpenJPEG to use during encoding. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
osv
CVE-2020-27824MEDIUMCVSS 5.5≥ 0, < 2.4.0-12021-05-13
CVE-2020-27824 [MEDIUM] CVE-2020-27824: A flaw was found in OpenJPEG’s encoder in the opj_dwt_calc_explicit_stepsizes() function A flaw was found in OpenJPEG’s encoder in the opj_dwt_calc_explicit_stepsizes() function. This flaw allows an attacker who can supply crafted input to decomposition levels to cause a buffer overflow. The highest threat from this vulnerability is to system availability.
osv
CVE-2020-27814HIGHCVSS 7.8≥ 0, < 2.4.0-12021-01-26
CVE-2020-27814 [HIGH] CVE-2020-27814: A heap-buffer overflow was found in the way openjpeg2 handled certain PNG format files A heap-buffer overflow was found in the way openjpeg2 handled certain PNG format files. An attacker could use this flaw to cause an application crash or in some cases execute arbitrary code with the permission of the user running such an application.
osv
CVE-2020-27845MEDIUMCVSS 5.5≥ 0, < 2.4.0-12021-01-05
CVE-2020-27845 [MEDIUM] CVE-2020-27845: There's a flaw in src/lib/openjp2/pi There's a flaw in src/lib/openjp2/pi.c of openjpeg in versions prior to 2.4.0. If an attacker is able to provide untrusted input to openjpeg's conversion/encoding functionality, they could cause an out-of-bounds read. The highest impact of this flaw is to application availability.
osv
CVE-2020-27842MEDIUMCVSS 5.5≥ 0, < 2.4.0-12021-01-05
CVE-2020-27842 [MEDIUM] CVE-2020-27842: There's a flaw in openjpeg's t2 encoder in versions prior to 2 There's a flaw in openjpeg's t2 encoder in versions prior to 2.4.0. An attacker who is able to provide crafted input to be processed by openjpeg could cause a null pointer dereference. The highest impact of this flaw is to application availability.
osv
CVE-2020-27843MEDIUMCVSS 5.5≥ 0, < 2.4.0-12021-01-05
CVE-2020-27843 [MEDIUM] CVE-2020-27843: A flaw was found in OpenJPEG in versions prior to 2 A flaw was found in OpenJPEG in versions prior to 2.4.0. This flaw allows an attacker to provide specially crafted input to the conversion or encoding functionality, causing an out-of-bounds read. The highest threat from this vulnerability is system availability.
osv
CVE-2020-27841MEDIUMCVSS 5.5≥ 0, < 2.4.0-12021-01-05
CVE-2020-27841 [MEDIUM] CVE-2020-27841: There's a flaw in openjpeg in versions prior to 2 There's a flaw in openjpeg in versions prior to 2.4.0 in src/lib/openjp2/pi.c. When an attacker is able to provide crafted input to be processed by the openjpeg encoder, this could cause an out-of-bounds read. The greatest impact from this flaw is to application availability.
osv
CVE-2020-15389MEDIUMCVSS 6.5≥ 0, < 2.4.0-12020-06-29
CVE-2020-15389 [MEDIUM] CVE-2020-15389: jp2/opj_decompress jp2/opj_decompress.c in OpenJPEG through 2.3.1 has a use-after-free that can be triggered if there is a mix of valid and invalid files in a directory operated on by the decompressor. Triggering a double-free may also be possible. This is related to calling opj_image_destroy twice.
osv
CVE-2016-3182MEDIUMCVSS 5.5≥ 0, < 2.1.1-12020-02-20
CVE-2016-3182 [MEDIUM] CVE-2016-3182: The color_esycc_to_rgb function in bin/common/color The color_esycc_to_rgb function in bin/common/color.c in OpenJPEG before 2.1.1 allows attackers to cause a denial of service (memory corruption) via a crafted jpeg 2000 file.
osv
CVE-2020-8112HIGHCVSS 7.5≥ 0, < 2.4.0-12020-01-28
CVE-2020-8112 [HIGH] CVE-2020-8112: opj_t1_clbl_decode_processor in openjp2/t1 opj_t1_clbl_decode_processor in openjp2/t1.c in OpenJPEG 2.3.1 through 2020-01-28 has a heap-based buffer overflow in the qmfbid==1 case, a different issue than CVE-2020-6851.
osv
CVE-2020-6851HIGHCVSS 7.5≥ 0, < 2.4.0-12020-01-13
CVE-2020-6851 [HIGH] CVE-2020-6851: OpenJPEG through 2 OpenJPEG through 2.3.1 has a heap-based buffer overflow in opj_t1_clbl_decode_processor in openjp2/t1.c because of lack of opj_j2k_update_image_dimensions validation.
osv
CVE-2018-21010HIGHCVSS 8.8≥ 0, < 2.3.1-12019-09-05
CVE-2018-21010 [HIGH] CVE-2018-21010: OpenJPEG before 2 OpenJPEG before 2.3.1 has a heap buffer overflow in color_apply_icc_profile in bin/common/color.c.
osv
CVE-2017-17480CRITICALCVSS 9.8≥ 0, < 2.3.0-2build0.18.04.12019-08-21
CVE-2017-17480 [CRITICAL] openjpeg2 vulnerabilities openjpeg2 vulnerabilities It was discovered that OpenJPEG incorrectly handled certain PGX files. An attacker could possibly use this issue to cause a denial of service or possibly remote code execution. (CVE-2017-17480) It was discovered that OpenJPEG incorrectly handled certain files. An attacker could possibly use this issue to cause a denial of service. (CVE-2018-14423) It was discovered that OpenJPEG incorrectly handled certain PNM files
osv