CVE-2018-16376
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the...
CVE-2018-16376 is a high vulnerability (CVSS 8.8) in Uclouvain Openjpeg, published September 3, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.84%, the 86th percentile. Fixed in openjpeg2 2.1.0-4.15.1.
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
CVE-2018-16376- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
CVE-2018-16376- Updated
- 2026-11-02
EUVDEUVD-2018-8222 No score
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
EUVD-2018-8222- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-9j6w-p36v-w54g
8.8
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the...
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
GHSA-9j6w-p36v-w54g- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVAZL-44406
8.8
CVE-2018-16376 affecting package openjpeg2 2.3.1-12
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
AZL-44406- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
8.8
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
CVE-2018-16376- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVDEBIAN-CVE-2018-16376
8.8
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
DEBIAN-CVE-2018-16376- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-16376
8.8
An issue was discovered in OpenJPEG 2.3.0. A heap-based buffer overflow was discovered in the function t2_encode_packet in lib/openmj2/t2.c. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.
- Record
UBUNTU-CVE-2018-16376- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13571-1 No score
libopenjp2-7-2.5.0-4.1 on GA media
These are all security issues fixed in the libopenjp2-7-2.5.0-4.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13571-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:1129-1 No score
Security update for openjpeg2
This update for openjpeg2 fixes the following issues:
- CVE-2016-1924: Fixed heap buffer overflow (bsc#980504).
- CVE-2016-3183: Fixed out-of-bounds read in sycc422_to_rgb function (bsc#971617).
- CVE-2016-4797: Fixed heap buffer overflow (bsc#980504).
- CVE-2018-14423: Fixed division-by-zero vulnerabilities in the functions pi_next_pcrl, pi_next_cprl,and pi_next_rpcl in lib/openjp3d/pi.c (bsc#1102016).
- CVE-2018-16375: Fixed missing checks for header_info.height and header_info.width in the function pnmtoimage in bin/jpwl/convert.c (bsc#1106882).
- CVE-2018-16376: Fixed heap-based buffer overflow function t2_encode_packet in lib/openmj2/t2.c (bsc#1106881).
- CVE-2018-20845: Fixed division-by-zero in the functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c (bsc#1140130).
- CVE-2018-20846: Fixed out-of-bounds accesses in pi_next_lrcp, pi_next_rlcp, pi_next_rpcl, pi_next_pcrl, pi_next_rpcl, and pi_next_cprl in openmj2/pi.c (bsc#1140205).
- CVE-2020-8112: Fixed heap-based buffer overflow in opj_t1_clbl_decode_processor in openjp2/t1.c (bsc#1162090).
- CVE-2020-15389: Fixed use-after-free if t a mix of valid and invalid files in a directory operated on by the decompressor (bsc#1173578).
- CVE-2020-27823: Fixed heap buffer over-write in opj_tcd_dc_level_shift_encode() (bsc#1180457).
- CVE-2021-29338: Fixed integer overflow that allows remote attackers to crash the application (bsc#1184774).
- CVE-2022-1122: Fixed segmentation fault in opj2_decompress due to uninitialized pointer (bsc#1197738).
- Record
SUSE-SU-2022:1129-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:1252-1 No score
Security update for openjpeg2
This update for openjpeg2 fixes the following issues:
- CVE-2018-5727: Fixed integer overflow vulnerability in theopj_t1_encode_cblks function (bsc#1076314).
- CVE-2018-5785: Fixed integer overflow caused by an out-of-bounds leftshift in the opj_j2k_setup_encoder function (bsc#1076967).
- CVE-2018-6616: Fixed excessive iteration in the opj_t1_encode_cblks function of openjp2/t1.c (bsc#1079845).
- CVE-2018-14423: Fixed division-by-zero vulnerabilities in the functions pi_next_pcrl, pi_next_cprl,and pi_next_rpcl in lib/openjp3d/pi.c (bsc#1102016).
- CVE-2018-16375: Fixed missing checks for header_info.height and header_info.width in the function pnmtoimage in bin/jpwl/convert.c (bsc#1106882).
- CVE-2018-16376: Fixed heap-based buffer overflow function t2_encode_packet in lib/openmj2/t2.c (bsc#1106881).
- CVE-2018-20845: Fixed division-by-zero in the functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.ci (bsc#1140130).
- CVE-2020-6851: Fixed heap-based buffer overflow in opj_t1_clbl_decode_processor (bsc#1160782).
- CVE-2020-8112: Fixed heap-based buffer overflow in opj_t1_clbl_decode_processor in openjp2/t1.c (bsc#1162090).
- CVE-2020-15389: Fixed use-after-free if t a mix of valid and invalid files in a directory operated on by the decompressor (bsc#1173578).
- CVE-2020-27823: Fixed heap buffer over-write in opj_tcd_dc_level_shift_encode() (bsc#1180457).
- CVE-2021-29338: Fixed integer overflow that allows remote attackers to crash the application (bsc#1184774).
- CVE-2022-1122: Fixed segmentation fault in opj2_decompress due to uninitialized pointer (bsc#1197738).
- Record
SUSE-SU-2022:1252-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:1296-1 No score
Security update for openjpeg
This update for openjpeg fixes the following issues:
- CVE-2018-14423: Fixed division-by-zero vulnerabilities in the functions pi_next_pcrl, pi_next_cprl,and pi_next_rpcl in lib/openjp3d/pi.c (bsc#1102016).
- CVE-2018-16376: Fixed heap-based buffer overflow function t2_encode_packet in lib/openmj2/t2.c (bsc#1106881).
- CVE-2020-8112: Fixed a heap buffer overflow in opj_t1_clbl_decode_processor in openjp2/t1.c (bsc#1162090).
- CVE-2020-15389: Fixed a use-after-free if a mix of valid and invalid files in a directory operated on by the decompressor (bsc#1173578).
- CVE-2020-27823: Fixed a heap buffer over-write in opj_tcd_dc_level_shift_encode() (bsc#1180457),
- CVE-2021-29338: Fixed an integer Overflow allows remote attackers to crash the application (bsc#1184774).
- Record
SUSE-SU-2022:1296-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
openjpeg2Azure Linux:3 |
through 2.3.1-12 | None known |
openjpeg2Debian:12 |
All versions, plus listed versions 2.5.0-22.5.0-2+deb12u12.5.0-2+deb12u22.5.0-2+deb12u32.5.3-1 Show 8 moreShow less2.5.3-1~exp12.5.3-1~exp22.5.3-22.5.3-2.12.5.3-2.1~deb13u12.5.3-2.1~deb13u22.5.4-12.5.4-1.1 |
None known |
openjpeg2Debian:13 |
All versions, plus listed versions 2.5.3-22.5.3-2.12.5.3-2.1~deb13u12.5.3-2.1~deb13u22.5.4-12.5.4-1.1 |
None known |
openjpeg2Debian:14 |
All versions, plus listed versions 2.5.3-22.5.3-2.12.5.3-2.1~deb13u12.5.3-2.1~deb13u22.5.4-12.5.4-1.1 |
None known |
openjpeg2SUSE:HPE Helion OpenStack 8 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:OpenStack Cloud 8 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:OpenStack Cloud 9 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:OpenStack Cloud Crowbar 8 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:OpenStack Cloud Crowbar 9 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
Show 53 moreShow less
| Package | Affected | Fixed |
|---|---|---|
openjpeg2SUSE:Linux Enterprise Server for SAP Applications 12 SP4 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Server 12 SP2-BCL |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Server 12 SP3-LTSS |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Server 12 SP3-BCL |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Server 12 SP4-LTSS |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Server 12 SP5 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
openjpeg2SUSE:Linux Enterprise Module for Basesystem 15 SP3 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Module for Package Hub 15 SP3 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Real Time 15 SP2 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server 15-LTSS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server 15 SP1-BCL |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server 15 SP1-LTSS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server 15 SP2-BCL |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server 15 SP2-LTSS |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server for SAP Applications 15 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Linux Enterprise Server for SAP Applications 15 SP2 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Manager Proxy 4.1 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Manager Retail Branch Server 4.1 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Manager Server 4.1 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Enterprise Storage 6 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2SUSE:Enterprise Storage 7 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpeg2openSUSE:Leap 15.3 |
before 2.3.0-150000.3.5.1 | 2.3.0-150000.3.5.1 |
openjpegSUSE:Linux Enterprise Module for Desktop Applications 15 SP3 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise High Performance Computing 15-ESPOS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise High Performance Computing 15-LTSS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Real Time 15 SP2 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server 15-LTSS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server 15 SP1-BCL |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server 15 SP1-LTSS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server 15 SP2-BCL |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server 15 SP2-LTSS |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server for SAP Applications 15 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Linux Enterprise Server for SAP Applications 15 SP2 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Manager Proxy 4.1 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Manager Retail Branch Server 4.1 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Manager Server 4.1 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Enterprise Storage 6 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegSUSE:Enterprise Storage 7 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegopenSUSE:Leap 15.3 |
before 1.5.2-150000.4.5.1 | 1.5.2-150000.4.5.1 |
openjpegUbuntu:14.04:LTS |
All versions, plus listed versions 1.3+dfsg-4.6ubuntu21.3+dfsg-4.7ubuntu1 |
None known |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
securityfocus.com/bid/105262
github.com/uclouvain/openjpeg/issues/1127
nvd.nist.gov/vuln/detail/CVE-2018-16376
github.com/advisories/GHSA-9j6w-p36v-w54g
security-tracker.debian.org/tracker/CVE-2018-16376
suse.com/support/update/announcement/2022/suse-su-20221129-1
Show 46 moreShow less
bugzilla.suse.com/1102016
bugzilla.suse.com/1106881
bugzilla.suse.com/1106882
bugzilla.suse.com/1140130
bugzilla.suse.com/1140205
bugzilla.suse.com/1162090
bugzilla.suse.com/1173578
bugzilla.suse.com/1180457
bugzilla.suse.com/1184774
bugzilla.suse.com/1197738
bugzilla.suse.com/971617
bugzilla.suse.com/980504
suse.com/security/cve/CVE-2016-1924
suse.com/security/cve/CVE-2016-3183
suse.com/security/cve/CVE-2016-4797
suse.com/security/cve/CVE-2018-14423
suse.com/security/cve/CVE-2018-16375
suse.com/security/cve/CVE-2018-16376
suse.com/security/cve/CVE-2018-20845
suse.com/security/cve/CVE-2018-20846
suse.com/security/cve/CVE-2020-15389
suse.com/security/cve/CVE-2020-27823
suse.com/security/cve/CVE-2020-8112
suse.com/security/cve/CVE-2021-29338
suse.com/security/cve/CVE-2022-1122
suse.com/support/update/announcement/2022/suse-su-20221252-1
bugzilla.suse.com/1076314
bugzilla.suse.com/1076967
bugzilla.suse.com/1079845
bugzilla.suse.com/1160782
suse.com/security/cve/CVE-2018-5727
suse.com/security/cve/CVE-2018-5785
suse.com/security/cve/CVE-2018-6616
suse.com/security/cve/CVE-2020-6851
suse.com/support/update/announcement/2022/suse-su-20221296-1
ubuntu.com/security/CVE-2018-16376
github.com/asarubbo/poc/blob/master/00322-openjpeg-heapoverflow-opj_t2_encode_packet
github.com/uclouvain/openjpeg/issues/1272
cve.org/CVERecord?id=CVE-2018-16376
suse.com/security/cve/CVE-2018-21010
suse.com/security/cve/CVE-2020-27814
suse.com/security/cve/CVE-2020-27824
suse.com/security/cve/CVE-2020-27841
suse.com/security/cve/CVE-2020-27842
suse.com/security/cve/CVE-2020-27843
suse.com/security/cve/CVE-2020-27845