Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2018-8905

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

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

Source evidence

CVE-2018-8905

core-osv · Original source

Published 22 Mar 2018, 04:29 UTC

In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.

osv:CVE-2018-8905
Complete source record
{
  "id": "6288d921943ffc748da1bc2259cfa8a8ce85281f442a768313921c47ed51354b",
  "url": "https://osv.dev/vulnerability/CVE-2018-8905",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2018-8905",
    "summary": "In LibTIFF 4.0.9, a heap-based buffer overflow occurs in the function LZWDecodeCompat in tif_lzw.c via a crafted TIFF file, as demonstrated by tiff2ps.",
    "evidence": "osv:CVE-2018-8905",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2018-8905",
      "aliases": [
        "CVE-2018-8905"
      ],
      "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/vadz/libtiff",
              "type": "GIT",
              "events": [
                {
                  "introduced": "636f2684a0faaf9510ae4219f286a53f98f37483"
                },
                {
                  "last_affected": "636f2684a0faaf9510ae4219f286a53f98f37483"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libtiff:libtiff:4.0.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.9"
                      },
                      {
                        "last_affected": "4.0.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.9",
            "Release-v4-0-9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-8905.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/libtiff/libtiff",
              "type": "GIT",
              "events": [
                {
                  "introduced": "020bd2fd3b4235b2175dafa9633d2b191c50e7cd"
                },
                {
                  "last_affected": "020bd2fd3b4235b2175dafa9633d2b191c50e7cd"
                },
                {
                  "fixed": "58a898cb4459055bb488ca815c23b880c242a27d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libtiff:libtiff:4.0.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.9"
                      },
                      {
                        "last_affected": "4.0.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "58a898cb4459055bb488ca815c23b880c242a27d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.9",
            "v4.0.9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-8905.json",
            "vanir_signatures": [
              {
                "id": "CVE-2018-8905-3fbe4683",
                "digest": {
                  "length": 4134,
                  "function_hash": "120825719578505321660184962155054746977"
                },
                "source": "https://gitlab.com/libtiff/libtiff@58a898cb4459055bb488ca815c23b880c242a27d",
                "target": {
                  "file": "libtiff/tif_lzw.c",
                  "function": "LZWDecodeCompat"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2018-8905-e4506fa1",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "177967733808906035883593633810155823881",
                    "203737156195573976975904104044591611902",
                    "167066477237446475925485410116217217762",
                    "173059985397098238975525246124703618955",
                    "99427663126675737957365031708259496074",
                    "289243857886536227372722331896346644343",
                    "10214055182485147416901345635429964874",
                    "183337954797534262759069573818295556151",
                    "139234947298997046072255456576489018581",
                    "244051190731298221544905369957809947884",
                    "94663415500484428692874645151769140260",
                    "212093616533759937923555560260924140032",
                    "35273233916047150958507687928769187078",
                    "217767932149858445127393940380373206037"
                  ]
                },
                "source": "https://gitlab.com/libtiff/libtiff@58a898cb4459055bb488ca815c23b880c242a27d",
                "target": {
                  "file": "libtiff/tif_lzw.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:12:23Z"
          }
        }
      ],
      "modified": "2026-10-24T14:12:23.555764946Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/errata/RHSA-2019:2053",
        "https://lists.debian.org/debian-lts-announce/2018/05/msg00008.html",
        "https://lists.debian.org/debian-lts-announce/2018/05/msg00009.html",
        "https://lists.debian.org/debian-lts-announce/2018/07/msg00002.html",
        "https://usn.ubuntu.com/3864-1/",
        "https://www.debian.org/security/2018/dsa-4349",
        "https://gitlab.com/libtiff/libtiff/commit/58a898cb4459055bb488ca815c23b880c242a27d",
        "https://github.com/halfbitteam/POCs/tree/master/libtiff-4.08_tiff2ps_heap_overflow"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "14.04"
                  },
                  {
                    "last_affected": "14.04"
                  },
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "18.10"
                  },
                  {
                    "last_affected": "18.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*",
              "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": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  },
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0"
                  },
                  {
                    "last_affected": "7.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2018-8905",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443397,
  "published_at": "2018-03-22T04:29:00.483+00:00"
}