Every CVE Search/ Get API key

CVE-2018-5727

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function...

6.5 MediumFix available

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

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
None
Integrity
None
Availability
High

Exploit likelihood

1.82%Up 1.2 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 6.5

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

Record
CVE-2018-5727
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
4.3 MediumAV:N/AC:M/Au:N/C:N/I:N/A:P
Weakness
CWE-190
Updated
2026-11-02
CVE List No score

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

Record
CVE-2018-5727
Updated
2026-11-02
EUVDEUVD-2018-17496 No score

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

Record
EUVD-2018-17496
Updated
2026-11-03
GitHub AdvisoriesGHSA-r7wc-c46x-5q6f 6.5

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function...

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

Record
GHSA-r7wc-c46x-5q6f
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-190
Updated
2026-11-02
OSV 6.5

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

Record
CVE-2018-5727
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2018-5727 6.5

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

Record
DEBIAN-CVE-2018-5727
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 8 moreShow less
OSVRHSA-2021:4251 7.8

Red Hat Security Advisory: openjpeg2 security update

Record
RHSA-2021:4251
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRLSA-2021:4251 7.8

Moderate: openjpeg2 security update

OpenJPEG is an open source library for reading and writing image files in JPEG2000 format.

The following packages have been upgraded to a later upstream version: openjpeg2 (2.4.0).

Security Fix(es):

  • openjpeg: use-after-free and double-free via a mix of valid and invalid files in a directory operated on by the decompressor (CVE-2020-15389)

  • openjpeg: heap-buffer-overflow in lib/openjp2/mqc.c could result in DoS (CVE-2020-27814)

  • openjpeg: heap-buffer-overflow write in opj_tcd_dc_level_shift_encode() (CVE-2020-27823)

  • openjpeg: heap-buffer-overflow in color.c may lead to DoS or arbitrary code execution (CVE-2021-3575)

  • openjpeg: integer overflow in opj_t1_encode_cblks in src/lib/openjp2/t1.c (CVE-2018-5727)

  • openjpeg: integer overflow in opj_j2k_setup_encoder function in openjp2/j2k.c (CVE-2018-5785)

  • openjpeg: division-by-zero in functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c (CVE-2018-20845)

  • openjpeg: integer overflow in function opj_get_encoding_parameters in openjp2/pi.c (CVE-2018-20847)

  • openjpeg: denial of service in function opj_t1_encode_cblks in openjp2/t1.c (CVE-2019-12973)

  • openjpeg: global-buffer-overflow read in opj_dwt_calc_explicit_stepsizes() (CVE-2020-27824)

  • openjpeg: null pointer dereference in opj_tgt_reset function in lib/openjp2/tgt.c (CVE-2020-27842)

  • openjpeg: out-of-bounds read in opj_t2_encode_packet function in openjp2/t2.c (CVE-2020-27843)

  • openjpeg: heap-based buffer overflow in functions opj_pi_next_rlcp, opj_pi_next_rpcl and opj_pi_next_lrcp in openjp2/pi.c (CVE-2020-27845)

  • openjpeg: out-of-bounds write due to an integer overflow in opj_compress.c (CVE-2021-29338)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.

Record
RLSA-2021:4251
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2018-5727 6.5

In OpenJPEG 2.3.0, there is an integer overflow vulnerability in the opj_t1_encode_cblks function (openjp2/t1.c). Remote attackers could leverage this vulnerability to cause a denial of service via a crafted bmp file.

Record
UBUNTU-CVE-2018-5727
CVSS 3.0
6.5 MediumCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVALSA-2021:4251 No score

Moderate: openjpeg2 security update

OpenJPEG is an open source library for reading and writing image files in JPEG2000 format.

The following packages have been upgraded to a later upstream version: openjpeg2 (2.4.0).

Security Fix(es):

  • openjpeg: use-after-free and double-free via a mix of valid and invalid files in a directory operated on by the decompressor (CVE-2020-15389)

  • openjpeg: heap-buffer-overflow in lib/openjp2/mqc.c could result in DoS (CVE-2020-27814)

  • openjpeg: heap-buffer-overflow write in opj_tcd_dc_level_shift_encode() (CVE-2020-27823)

  • openjpeg: heap-buffer-overflow in color.c may lead to DoS or arbitrary code execution (CVE-2021-3575)

  • openjpeg: integer overflow in opj_t1_encode_cblks in src/lib/openjp2/t1.c (CVE-2018-5727)

  • openjpeg: integer overflow in opj_j2k_setup_encoder function in openjp2/j2k.c (CVE-2018-5785)

  • openjpeg: division-by-zero in functions pi_next_pcrl, pi_next_cprl, and pi_next_rpcl in openmj2/pi.c (CVE-2018-20845)

  • openjpeg: integer overflow in function opj_get_encoding_parameters in openjp2/pi.c (CVE-2018-20847)

  • openjpeg: denial of service in function opj_t1_encode_cblks in openjp2/t1.c (CVE-2019-12973)

  • openjpeg: global-buffer-overflow read in opj_dwt_calc_explicit_stepsizes() (CVE-2020-27824)

  • openjpeg: null pointer dereference in opj_tgt_reset function in lib/openjp2/tgt.c (CVE-2020-27842)

  • openjpeg: out-of-bounds read in opj_t2_encode_packet function in openjp2/t2.c (CVE-2020-27843)

  • openjpeg: heap-based buffer overflow in functions opj_pi_next_rlcp, opj_pi_next_rpcl and opj_pi_next_lrcp in openjp2/pi.c (CVE-2020-27845)

  • openjpeg: out-of-bounds write due to an integer overflow in opj_compress.c (CVE-2021-29338)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional Changes:

For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.

Record
ALSA-2021:4251
Updated
2026-11-02
OSVopenSUSE-SU-2024:11120-1 No score

libopenjp2-7-2.4.0-1.4 on GA media

These are all security issues fixed in the libopenjp2-7-2.4.0-1.4 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:11120-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
OSVUSN-4686-1 No score

ghostscript vulnerabilities

It was discovered that Ghostscript incorrectly handled certain image files. If a user or automated system were tricked into processing a specially crafted file, a remote attacker could use this issue to cause Ghostscript to crash, resulting in a denial of service, or possibly execute arbitrary code.

Record
USN-4686-1
Updated
2026-11-02
OSVUSN-4782-1 No score

openjpeg2 vulnerabilities

It was discovered that OpenJPEG incorrectly handled certain image files. A remote attacker could possibly use this issue to cause a denial of service. CVE-2016-10506 and CVE-2017-12982 affected only Ubuntu 16.04 ESM. CVE-2018-16375, CVE-2018-20845 and CVE-2019-12973 affected only Ubuntu 18.04 ESM.

Record
USN-4782-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
openjpeg2
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2-devel
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2-devel-docs
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2-tools
AlmaLinux:8
before 2.4.0-4.el8
2.4.0-4.el8
openjpeg2
Debian:12
before 2.3.1-1
2.3.1-1
openjpeg2
Debian:13
before 2.3.1-1
2.3.1-1
openjpeg2
Debian:14
before 2.3.1-1
2.3.1-1
openjpeg2
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-debugsource
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
Show 38 moreShow less
Affected packages
PackageAffectedFixed
openjpeg2-devel-docs
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-debugsource
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-devel
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2-tools-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2
Rocky Linux:8
before 0:2.4.0-4.el8
0:2.4.0-4.el8
openjpeg2
SUSE:Linux Enterprise Module for Basesystem 15 SP3
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Module for Package Hub 15 SP3
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise High Performance Computing 15-ESPOS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise High Performance Computing 15-LTSS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise High Performance Computing 15 SP2-ESPOS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Real Time 15 SP2
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server 15-LTSS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server 15 SP1-BCL
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server 15 SP1-LTSS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server 15 SP2-BCL
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server 15 SP2-LTSS
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server for SAP Applications 15
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server for SAP Applications 15 SP1
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Linux Enterprise Server for SAP Applications 15 SP2
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Manager Proxy 4.1
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Manager Retail Branch Server 4.1
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Manager Server 4.1
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Enterprise Storage 6
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
SUSE:Enterprise Storage 7
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg2
openSUSE:Leap 15.3
before 2.3.0-150000.3.5.1
2.3.0-150000.3.5.1
openjpeg
Ubuntu:14.04:LTS
All versions, plus listed versions
1.3+dfsg-4.6ubuntu21.3+dfsg-4.7ubuntu1
None known
ghostscript
Ubuntu:16.04:LTS
before 9.26~dfsg+0-0ubuntu0.16.04.14, plus listed versions
9.16~dfsg~0-0ubuntu39.16~dfsg~0-0ubuntu49.18~dfsg~0-0ubuntu19.18~dfsg~0-0ubuntu29.18~dfsg~0-0ubuntu2.2
Show 21 moreShow less
9.18~dfsg~0-0ubuntu2.39.18~dfsg~0-0ubuntu2.49.18~dfsg~0-0ubuntu2.69.18~dfsg~0-0ubuntu2.79.18~dfsg~0-0ubuntu2.89.18~dfsg~0-0ubuntu2.99.25~dfsg+1-0ubuntu0.16.04.19.25~dfsg+1-0ubuntu0.16.04.29.25~dfsg+1-0ubuntu0.16.04.39.26~dfsg+0-0ubuntu0.16.04.19.26~dfsg+0-0ubuntu0.16.04.39.26~dfsg+0-0ubuntu0.16.04.49.26~dfsg+0-0ubuntu0.16.04.59.26~dfsg+0-0ubuntu0.16.04.69.26~dfsg+0-0ubuntu0.16.04.79.26~dfsg+0-0ubuntu0.16.04.89.26~dfsg+0-0ubuntu0.16.04.99.26~dfsg+0-0ubuntu0.16.04.109.26~dfsg+0-0ubuntu0.16.04.119.26~dfsg+0-0ubuntu0.16.04.129.26~dfsg+0-0ubuntu0.16.04.13
9.26~dfsg+0-0ubuntu0.16.04.14
openjpeg2
Ubuntu:Pro:16.04:LTS
before 2.1.2-1.1+deb9u6ubuntu0.1~esm1, plus listed versions
2.1.0-2.12.1.0-2.1ubuntu0.12.1.2-1.1+deb9u2build0.12.1.2-1.1+deb9u3build0.16.04.12.1.2-1.1+deb9u3ubuntu0.1~esm12.1.2-1.1+deb9u5build0.16.04.12.1.2-1.1+deb9u5ubuntu0.1~esm12.1.2-1.1+deb9u6build0.16.04.1
2.1.2-1.1+deb9u6ubuntu0.1~esm1
openjpeg
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
1:1.5.2-3.11:1.5.2-3.1ubuntu0.1~esm2
None known
ghostscript
Ubuntu:18.04:LTS
before 9.26~dfsg+0-0ubuntu0.18.04.14, plus listed versions
9.21~dfsg+1-0ubuntu39.22~dfsg+1-0ubuntu19.22~dfsg+1-0ubuntu1.19.22~dfsg+1-0ubuntu1.29.25~dfsg+1-0ubuntu0.18.04.1
Show 13 moreShow less
9.25~dfsg+1-0ubuntu0.18.04.29.26~dfsg+0-0ubuntu0.18.04.19.26~dfsg+0-0ubuntu0.18.04.39.26~dfsg+0-0ubuntu0.18.04.49.26~dfsg+0-0ubuntu0.18.04.59.26~dfsg+0-0ubuntu0.18.04.69.26~dfsg+0-0ubuntu0.18.04.79.26~dfsg+0-0ubuntu0.18.04.89.26~dfsg+0-0ubuntu0.18.04.99.26~dfsg+0-0ubuntu0.18.04.109.26~dfsg+0-0ubuntu0.18.04.119.26~dfsg+0-0ubuntu0.18.04.129.26~dfsg+0-0ubuntu0.18.04.13
9.26~dfsg+0-0ubuntu0.18.04.14
openjpeg2
Ubuntu:Pro:18.04:LTS
before 2.3.0-2ubuntu0.1~esm1, plus listed versions
2.2.0-12.3.0-12.3.0-2build0.18.04.1
2.3.0-2ubuntu0.1~esm1

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-5727 is a medium vulnerability (CVSS 6.5) in Uclouvain Openjpeg, published January 16, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.82%, the 78th percentile. Fixed in openjpeg2 2.4.0-4.el8.

References

Show 133 moreShow less
MoveEnter Open