Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-8687

Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.

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

Source evidence

CVE-2016-8687

core-osv · Original source

Published 15 Feb 2017, 19:59 UTC

Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.

osv:CVE-2016-8687
Complete source record
{
  "id": "993054851d4791b5156571a0378855eaee0252a04a978e3674d290ca7f2f7512",
  "url": "https://osv.dev/vulnerability/CVE-2016-8687",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-8687",
    "summary": "Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename.",
    "evidence": "osv:CVE-2016-8687",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-8687",
      "aliases": [
        "CVE-2016-8687"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/libarchive/libarchive",
              "type": "GIT",
              "events": [
                {
                  "introduced": "139d0576b51a253732a5ab1f66805dffbf8b00af"
                },
                {
                  "last_affected": "139d0576b51a253732a5ab1f66805dffbf8b00af"
                },
                {
                  "fixed": "e37b620fe8f14535d737e89a4dcabaed4517bf1a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libarchive:libarchive:3.2.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.2.1"
                      },
                      {
                        "last_affected": "3.2.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "e37b620fe8f14535d737e89a4dcabaed4517bf1a"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.2.1",
            "v3.2.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-8687.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-8687-2b8436e1",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "274947236785517941576769110957933520277",
                    "162673665667336708429251698339556414402",
                    "30924440026046384237080647977686539477",
                    "6762232481255207823455611895071712144"
                  ]
                },
                "source": "https://github.com/libarchive/libarchive/commit/e37b620fe8f14535d737e89a4dcabaed4517bf1a",
                "target": {
                  "file": "tar/util.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-8687-f2b8937e",
                "digest": {
                  "length": 1454,
                  "function_hash": "306124670893253162293110805501400168732"
                },
                "source": "https://github.com/libarchive/libarchive/commit/e37b620fe8f14535d737e89a4dcabaed4517bf1a",
                "target": {
                  "file": "tar/util.c",
                  "function": "safe_fprintf"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:22:47Z"
          }
        }
      ],
      "modified": "2026-10-20T13:22:47.756225851Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2018/11/msg00037.html",
        "https://blogs.gentoo.org/ago/2016/09/11/libarchive-bsdtar-stack-based-buffer-overflow-in-bsdtar_expand_char-util-c/",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1377926",
        "https://github.com/libarchive/libarchive/commit/e37b620fe8f14535d737e89a4dcabaed4517bf1a",
        "https://security.gentoo.org/glsa/201701-03"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:42.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "42.2"
                  },
                  {
                    "last_affected": "42.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-8687",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387595,
  "published_at": "2017-02-15T19:59:00.58+00:00"
}