Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2017-14040

An invalid write access was discovered in bin/jp2/convert.c in OpenJPEG 2.2.0, triggering a crash in the tgatoimage function. The vulnerability 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-14040
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:11 UTC · Revision 1

Source evidence

CVE-2017-14040

core-osv · Original source

Published 30 Aug 2017, 22:29 UTC

An invalid write access was discovered in bin/jp2/convert.c in OpenJPEG 2.2.0, triggering a crash in the tgatoimage function. The vulnerability may lead to remote denial of service or possibly unspecified other impact.

osv:CVE-2017-14040
Complete source record
{
  "id": "280b6c8d2990ac084c3b4c761fc8cc1d2b9eacb62eade02ea905f4d68ef9bb86",
  "url": "https://osv.dev/vulnerability/CVE-2017-14040",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2017-14040",
    "summary": "An invalid write access was discovered in bin/jp2/convert.c in OpenJPEG 2.2.0, triggering a crash in the tgatoimage function. The vulnerability may lead to remote denial of service or possibly unspecified other impact.",
    "evidence": "osv:CVE-2017-14040",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2017-14040",
      "aliases": [
        "CVE-2017-14040"
      ],
      "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": "3d7cde5fc9fbc5618d02160900d32e02ed12a00e"
                },
                {
                  "last_affected": "3d7cde5fc9fbc5618d02160900d32e02ed12a00e"
                },
                {
                  "fixed": "2cd30c2b06ce332dede81cccad8b334cde997281"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:uclouvain:openjpeg:2.2.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.2.0"
                      },
                      {
                        "last_affected": "2.2.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2cd30c2b06ce332dede81cccad8b334cde997281"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.2.0",
            "v2.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14040.json",
            "vanir_signatures": [
              {
                "id": "CVE-2017-14040-331ba8bd",
                "digest": {
                  "length": 3699,
                  "function_hash": "66090434281455959844665154648051738419"
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/2cd30c2b06ce332dede81cccad8b334cde997281",
                "target": {
                  "file": "src/bin/jp2/convert.c",
                  "function": "tgatoimage"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-14040-46249ede",
                "digest": {
                  "length": 217,
                  "function_hash": "167788260771497595903386050576808750588"
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/2cd30c2b06ce332dede81cccad8b334cde997281",
                "target": {
                  "file": "src/bin/jp2/convert.c",
                  "function": "get_ushort"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2017-14040-6e8df9fd",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "23525036583353418219320625966324550802",
                    "177327374119435514219145268307399613089",
                    "320623253887673411484520483589847192131",
                    "292835775766298235912524706889006590080",
                    "112012328534867882596683590143771823601",
                    "53673022407700848319040940612564991516",
                    "57555459998663249802015055391138480059",
                    "15231687001431685197667587808981253486",
                    "217640787295235956893042733445023631782",
                    "311516972248278321224105276315001811102",
                    "281182748761316883612476950947884525571",
                    "265579774650878365822292963790672756851",
                    "243979219833432046093380905842942841838",
                    "37081014724010140555910374229781137214",
                    "90807083015443714754204566778127861642",
                    "111471989039993494687198901980907597582",
                    "75508931994012076446955353194820426506",
                    "226736906340592722759329902925316458757",
                    "216467255423318053875574874476802357556",
                    "255658464969642274031690919941005577119",
                    "156822966723833280756110815668282640562",
                    "281126177618215740790811151757715309287",
                    "14077404740799291264839640468846001881",
                    "124071256899131307689789756406006839288"
                  ]
                },
                "source": "https://github.com/uclouvain/openjpeg/commit/2cd30c2b06ce332dede81cccad8b334cde997281",
                "target": {
                  "file": "src/bin/jp2/convert.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:16:35Z"
          }
        }
      ],
      "modified": "2026-10-20T13:16:35.883046759Z",
      "provider": "osv",
      "references": [
        "https://blogs.gentoo.org/ago/2017/08/28/openjpeg-invalid-memory-write-in-tgatoimage-convert-c/",
        "https://github.com/uclouvain/openjpeg/commit/2cd30c2b06ce332dede81cccad8b334cde997281",
        "https://github.com/uclouvain/openjpeg/issues/995"
      ],
      "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-14040",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387437,
  "published_at": "2017-08-30T22:29:00.25+00:00"
}