Every CVE Search/ Get API key

CVE-2016-4797

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1...

5.5 MediumFix available

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
High

Exploit likelihood

2.16%Up 0.4 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 5.5

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Record
CVE-2016-4797
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/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-369
Updated
2026-11-02
CVE List No score

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Record
CVE-2016-4797
Updated
2026-11-02
EUVDEUVD-2016-5781 No score

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Record
EUVD-2016-5781
Updated
2026-11-03
GitHub AdvisoriesGHSA-g3qh-h448-hf99 5.5

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1...

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Record
GHSA-g3qh-h448-hf99
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness
CWE-369
Updated
2026-11-02
OSVBELL-CVE-2016-4797 5.5

CVE-2016-4797 does not affect BellSoft software

Record
BELL-CVE-2016-4797
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSV 5.5

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Record
CVE-2016-4797
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVDEBIAN-CVE-2016-4797 5.5

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Record
DEBIAN-CVE-2016-4797
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2016-4797 5.5

Divide-by-zero vulnerability in the opj_tcd_init_tile function in tcd.c in OpenJPEG before 2.1.1 allows remote attackers to cause a denial of service (application crash) via a crafted jp2 file. NOTE: this issue exists because of an incorrect fix for CVE-2014-7947.

Record
UBUNTU-CVE-2016-4797
CVSS 3.0
5.5 MediumCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Updated
2026-11-02
OSVMGASA-2016-0362 No score

Updated openjpeg2 packages fix security vulnerabilities

A specially crafted JPEG2000 image file can force Out-Of-Bounds Read in opj_tcd_free_tile() (CVE-2016-3181).

A specially crafted JPEG2000 image file can force Heap Corruption in opj_free() (CVE-2016-3182).

A specially crafted JPEG2000 image file can force Out-Of-Bounds Read in sycc422_to_rgb() (CVE-2016-3183).

OpenJPEG Heap Buffer Overflow in function color_cmyk_to_rgb() in color.c (CVE-2016-4796).

OpenJPEG division-by-zero in function opj_tcd_init_tile() in tcd.c (CVE-2016-4797).

Heap-based buffer overflow in the opj_dwt_interleave_v function in dwt.c in OpenJPEG allows remote attackers to execute arbitrary code via crafted coordinate values in JPEG 2000 data (CVE-2016-5157).

Integer overflow in the opj_pi_create_decode function in pi.c in OpenJPEG allows remote attackers to execute arbitrary code via a crafted JP2 file, which triggers an out-of-bounds read or write (CVE-2016-7163).

convert.c in OpenJPEG before 2.1.2 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via vectors involving the variable s (CVE-2016-7445).

A buffer overflow in OpenJPEG 2.1.1 causes arbitrary code execution when parsing a crafted image. An exploitable code execution vulnerability exists in the jpeg2000 image file format parser as implemented in the OpenJpeg library. A specially crafted jpeg2000 file can cause an out of bound heap write resulting in heap corruption leading to arbitrary code execution (CVE-2016-8332).

Record
MGASA-2016-0362
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

Affected products

Affected packages

Affected packages
PackageAffectedFixed
openjpeg2
Debian:12
before 2.1.1-1
2.1.1-1
openjpeg2
Debian:13
before 2.1.1-1
2.1.1-1
openjpeg2
Debian:14
before 2.1.1-1
2.1.1-1
openjpeg2
Mageia:5
before 2.1.2-1.mga5
2.1.2-1.mga5
ghostscript
Mageia:5
before 9.14-3.2.mga5
9.14-3.2.mga5
openjpeg2
SUSE:HPE Helion OpenStack 8
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:OpenStack Cloud 8
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:OpenStack Cloud 9
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:OpenStack Cloud Crowbar 8
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:OpenStack Cloud Crowbar 9
before 2.1.0-4.15.1
2.1.0-4.15.1
Show 9 moreShow less
Affected packages
PackageAffectedFixed
openjpeg2
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:Linux Enterprise Server for SAP Applications 12 SP4
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:Linux Enterprise Server 12 SP2-BCL
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:Linux Enterprise Server 12 SP3-LTSS
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:Linux Enterprise Server 12 SP3-BCL
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:Linux Enterprise Server 12 SP4-LTSS
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:Linux Enterprise Server 12 SP5
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.1.0-4.15.1
2.1.0-4.15.1
openjpeg2
Ubuntu:16.04:LTS
before 2.1.2-1.1+deb9u2build0.1, plus listed versions
2.1.0-2.12.1.0-2.1ubuntu0.1
2.1.2-1.1+deb9u2build0.1

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-2016-4797 is a medium vulnerability (CVSS 5.5) in Uclouvain Openjpeg, published November 3, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.16%, the 82nd percentile. Fixed in openjpeg2 2.1.1-1.

References

Show 48 moreShow less
MoveEnter Open