Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-9540

tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-9540
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:06 UTC · Revision 1

Source evidence

CVE-2016-9540

core-osv · Original source

Published 22 Nov 2016, 19:59 UTC

tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka "cpStripToTile heap-buffer-overflow."

osv:CVE-2016-9540
Complete source record
{
  "id": "7271000cd492d244f7268f7d37e79e82cda737f3f8d037c597776c5cc56d2d28",
  "url": "https://osv.dev/vulnerability/CVE-2016-9540",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-9540",
    "summary": "tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka \"cpStripToTile heap-buffer-overflow.\"",
    "evidence": "osv:CVE-2016-9540",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2016-9540",
      "aliases": [
        "CVE-2016-9540"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/vadz/libtiff",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8a37c8e244de3457283b54986d09a8db4d24381c"
                },
                {
                  "last_affected": "8a37c8e244de3457283b54986d09a8db4d24381c"
                },
                {
                  "fixed": "5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libtiff:libtiff:4.0.6:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.6"
                      },
                      {
                        "last_affected": "4.0.6"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.6",
            "Release-v4-0-6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9540.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-9540-14ce97fd",
                "digest": {
                  "length": 1112,
                  "function_hash": "207524068906828631989641842792468108303"
                },
                "source": "https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3",
                "target": {
                  "file": "tools/tiffcp.c",
                  "function": "DECLAREreadFunc"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-9540-6dbdf5a6",
                "digest": {
                  "length": 1114,
                  "function_hash": "195565821341471143227011566239408712014"
                },
                "source": "https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3",
                "target": {
                  "file": "tools/tiffcp.c",
                  "function": "DECLAREwriteFunc"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-9540-92bc6797",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "34526652489744293167320693439694332065",
                    "65740507902341232373190466765183987449",
                    "154738245544947738771589024196496874484",
                    "184235936083252003010603516386408026816",
                    "34526652489744293167320693439694332065",
                    "322474512737234513158984885363131714047",
                    "48270571887375478153307819412452982050",
                    "18898764740452236580005303907312585781"
                  ]
                },
                "source": "https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3",
                "target": {
                  "file": "tools/tiffcp.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:08:55Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/libtiff/libtiff",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5612707c086cda76319552a0a2afeddcfa67d1b3"
                },
                {
                  "last_affected": "5612707c086cda76319552a0a2afeddcfa67d1b3"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libtiff:libtiff:4.0.6:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.6"
                      },
                      {
                        "last_affected": "4.0.6"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.6",
            "v4.0.6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9540.json"
          }
        }
      ],
      "modified": "2026-10-24T14:08:55.853155804Z",
      "provider": "osv",
      "references": [
        "https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2016-9540",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443107,
  "published_at": "2016-11-22T19:59:08.84+00:00"
}