Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-4797

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-4797
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:10 UTC · Revision 1

Source evidence

CVE-2016-4797

core-osv · Original source

Published 3 Feb 2017, 16:59 UTC

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.

osv:CVE-2016-4797
Complete source record
{
  "id": "d2f021ccceeaab13fb5e089810cea92cc51f2a89dd3c031de3f68d3d1de0c08a",
  "url": "https://osv.dev/vulnerability/CVE-2016-4797",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-4797",
    "summary": "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.",
    "evidence": "osv:CVE-2016-4797",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2016-4797",
      "aliases": [
        "CVE-2016-4797"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/uclouvain/openjpeg",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "53f25200ed696cf5dc71d5fe12faad2570861b20"
                },
                {
                  "fixed": "8f9cc62b3f9a1da9712329ddcedb9750d585505c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.1.1"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "8f9cc62b3f9a1da9712329ddcedb9750d585505c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4797.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-4797-0cac461e",
                "digest": {
                  "length": 9361,
                  "function_hash": "257004248534814206722681566285479977596"
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/8f9cc62b3f9a1da9712329ddcedb9750d585505c",
                "target": {
                  "file": "src/lib/openjp2/tcd.c",
                  "function": "opj_tcd_init_tile"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-4797-d9f76175",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "225049661102870250041549526641074616634",
                    "73247418388560494446265847644653004742",
                    "334601661058292120774571645982894165467",
                    "175452125379047758074089300299006649918"
                  ]
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/8f9cc62b3f9a1da9712329ddcedb9750d585505c",
                "target": {
                  "file": "src/lib/openjp2/tcd.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:15:38Z"
          }
        }
      ],
      "modified": "2026-10-20T13:15:38.399341390Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5FFMOZOF2EI6N2CR23EQ5EATWLQKBMHW/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BJM23YERMEC6LCTWBUH7LZURGSLZDFDH/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DFRD35RIPRCGZA5DKAKHZ62LMP2A5UT7/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HPMDEUIMHTLKMHELDL4F4HZ7X4Y34JEB/",
        "https://www.oracle.com/security-alerts/cpujul2020.html",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1335483",
        "https://github.com/uclouvain/openjpeg/commit/8f9cc62b3f9a1da9712329ddcedb9750d585505c",
        "https://github.com/uclouvain/openjpeg/issues/733"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "uclouvain:openjpeg",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "2.1.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:24:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "23"
                  },
                  {
                    "last_affected": "23"
                  },
                  {
                    "introduced": "24"
                  },
                  {
                    "last_affected": "24"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-4797",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387412,
  "published_at": "2017-02-03T16:59:00.293+00:00"
}