Divide-by-zero vulnerability in the opjtcdinit_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.
{
"unresolved_ranges": [
{
"source": "CPE_RANGE",
"cpes": [
"cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:*"
],
"vendor_product": "uclouvain:openjpeg",
"extracted_events": [
{
"last_affected": "2.1.0"
}
]
},
{
"source": "CPE_STRING",
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"introduced": "23"
},
{
"last_affected": "23"
},
{
"introduced": "24"
},
{
"last_affected": "24"
}
]
}
]
}[
{
"digest": {
"length": 9361.0,
"function_hash": "257004248534814206722681566285479977596"
},
"signature_version": "v1",
"source": "https://github.com/uclouvain/openjpeg/commit/8f9cc62b3f9a1da9712329ddcedb9750d585505c",
"signature_type": "Function",
"target": {
"function": "opj_tcd_init_tile",
"file": "src/lib/openjp2/tcd.c"
},
"id": "CVE-2016-4797-0cac461e",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"225049661102870250041549526641074616634",
"73247418388560494446265847644653004742",
"334601661058292120774571645982894165467",
"175452125379047758074089300299006649918"
]
},
"signature_version": "v1",
"source": "https://github.com/uclouvain/openjpeg/commit/8f9cc62b3f9a1da9712329ddcedb9750d585505c",
"signature_type": "Line",
"target": {
"file": "src/lib/openjp2/tcd.c"
},
"id": "CVE-2016-4797-d9f76175",
"deprecated": false
}
]
"2026-07-08T12:41:30Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4797.json"