CVE-2016-4797
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.
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
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 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
openjpeg2Debian:12 |
before 2.1.1-1 | 2.1.1-1 |
openjpeg2Debian:13 |
before 2.1.1-1 | 2.1.1-1 |
openjpeg2Debian:14 |
before 2.1.1-1 | 2.1.1-1 |
openjpeg2Mageia:5 |
before 2.1.2-1.mga5 | 2.1.2-1.mga5 |
ghostscriptMageia:5 |
before 9.14-3.2.mga5 | 9.14-3.2.mga5 |
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 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
openjpeg2SUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.1.0-4.15.1 | 2.1.0-4.15.1 |
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 |
openjpeg2Ubuntu: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
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE 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
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FFMOZOF2EI6N2CR23EQ5EATWLQKBMHW
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HPMDEUIMHTLKMHELDL4F4HZ7X4Y34JEB
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BJM23YERMEC6LCTWBUH7LZURGSLZDFDH
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DFRD35RIPRCGZA5DKAKHZ62LMP2A5UT7
openwall.com/lists/oss-security/2016/05/13/2
oracle.com/security-alerts/cpujul2020.html
Show 48 moreShow less
github.com/uclouvain/openjpeg/commit/8f9cc62b3f9a1da9712329ddcedb9750d585505c
github.com/uclouvain/openjpeg/issues/733
bugzilla.redhat.com/show_bug.cgi?id=1335483
nvd.nist.gov/vuln/detail/CVE-2016-4797
lists.fedoraproject.org/archives/list/[email protected]/message/5FFMOZOF2EI6N2CR23EQ5EATWLQKBMHW
lists.fedoraproject.org/archives/list/[email protected]/message/BJM23YERMEC6LCTWBUH7LZURGSLZDFDH
lists.fedoraproject.org/archives/list/[email protected]/message/DFRD35RIPRCGZA5DKAKHZ62LMP2A5UT7
lists.fedoraproject.org/archives/list/[email protected]/message/HPMDEUIMHTLKMHELDL4F4HZ7X4Y34JEB
github.com/advisories/GHSA-g3qh-h448-hf99
docs.bell-sw.com/security/cves/CVE-2016-4797
security-tracker.debian.org/tracker/CVE-2016-4797
advisories.mageia.org/MGASA-2016-0362.html
bugs.mageia.org/show_bug.cgi?id=17536
lists.fedoraproject.org/archives/list/[email protected]/thread/HPMDEUIMHTLKMHELDL4F4HZ7X4Y34JEB
github.com/uclouvain/openjpeg/blob/master/CHANGELOG.md
debian.org/security/2016/dsa-3665
lists.opensuse.org/opensuse-updates/2016-09/msg00109.html
talosintelligence.com/reports/TALOS-2016-0193
openjpeg.org/2016/09/28/OpenJPEG-2.1.2-released
github.com/uclouvain/openjpeg/blob/openjpeg-2.1/CHANGELOG.md
suse.com/support/update/announcement/2022/suse-su-20221129-1
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
ubuntu.com/security/CVE-2016-4797
cve.org/CVERecord?id=CVE-2016-4797