Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-14039

A heap-based buffer overflow was discovered in the opj_t2_encode_packet function in lib/openjp2/t2.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.

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

Source evidence

CVE-2017-14039

core-osv · Original source

Published 30 Aug 2017, 22:29 UTC

A heap-based buffer overflow was discovered in the opj_t2_encode_packet function in lib/openjp2/t2.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.

osv:CVE-2017-14039
Complete source record
{
  "id": "675aa26054e59f021e24f03121022f6ba4271b7d7edf969f959b5e655ab02aa1",
  "url": "https://osv.dev/vulnerability/CVE-2017-14039",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-14039",
    "summary": "A heap-based buffer overflow was discovered in the opj_t2_encode_packet function in lib/openjp2/t2.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly unspecified other impact.",
    "evidence": "osv:CVE-2017-14039",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-14039",
      "aliases": [
        "CVE-2017-14039"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/uclouvain/openjpeg",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "081de4b15f54cb4482035b7bf5e3fb443e4bc84b"
                },
                {
                  "fixed": "c535531f03369623b9b833ef41952c62257b507e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.3.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c535531f03369623b9b833ef41952c62257b507e"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14039.json",
            "vanir_signatures": [
              {
                "id": "CVE-2017-14039-2c102b92",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "91843015131909262611516801983236892286",
                    "287089807267592804258651948075147523393",
                    "271147091074695616198156650530548938695",
                    "232139246865052873213394828111752795814",
                    "132407218946716406511236008697983674787",
                    "140818366234325725951162001091792728676",
                    "257713435077287072716520241305791031045",
                    "307940706585755257162283875149548706908"
                  ]
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/c535531f03369623b9b833ef41952c62257b507e",
                "target": {
                  "file": "src/lib/openjp2/t2.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-14039-7beeb664",
                "digest": {
                  "length": 5107,
                  "function_hash": "305364326982495910255902172214619275892"
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/c535531f03369623b9b833ef41952c62257b507e",
                "target": {
                  "file": "src/lib/openjp2/t2.c",
                  "function": "opj_t2_encode_packet"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-14039-934511cd",
                "digest": {
                  "length": 879,
                  "function_hash": "333197779534767222267329773720581898577"
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/c535531f03369623b9b833ef41952c62257b507e",
                "target": {
                  "file": "src/lib/openjp2/j2k.c",
                  "function": "opj_j2k_write_sot"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-14039-9bf28b2f",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "10836218539523676017936851795172491646",
                    "186323259111068633802763598633648888639",
                    "223393692161991537137424614845306178212",
                    "299371021208939660984199255457571383018",
                    "59723713253829720829761025772323854186",
                    "184991792299470983867997235842132132042",
                    "67164973024348438351225583009452067737"
                  ]
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/c535531f03369623b9b833ef41952c62257b507e",
                "target": {
                  "file": "src/lib/openjp2/j2k.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-14039-e5841632",
                "digest": {
                  "length": 981,
                  "function_hash": "41830172812418987381565082670664732618"
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/c535531f03369623b9b833ef41952c62257b507e",
                "target": {
                  "file": "src/lib/openjp2/j2k.c",
                  "function": "opj_j2k_write_sod"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:21:06Z"
          }
        }
      ],
      "modified": "2026-10-20T13:21:06.433378538Z",
      "provider": "osv",
      "references": [
        "https://security.gentoo.org/glsa/201710-26",
        "https://blogs.gentoo.org/ago/2017/08/28/openjpeg-heap-based-buffer-overflow-in-opj_t2_encode_packet-t2-c/",
        "https://github.com/uclouvain/openjpeg/commit/c535531f03369623b9b833ef41952c62257b507e",
        "https://github.com/uclouvain/openjpeg/issues/992"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2017-14039",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387536,
  "published_at": "2017-08-30T22:29:00.203+00:00"
}