Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-4343

The phar_make_dirstream function in ext/phar/dirstream.c in PHP before 5.6.18 and 7.x before 7.0.3 mishandles zero-size ././@LongLink files, which allows remote attackers to cause a denial of service (uninitialized pointer dereference) or possibly have unspecified other impact via a crafted TAR archive.

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

Source evidence

CVE-2016-4343

core-osv · Original source

Published 22 May 2016, 01:59 UTC

The phar_make_dirstream function in ext/phar/dirstream.c in PHP before 5.6.18 and 7.x before 7.0.3 mishandles zero-size ././@LongLink files, which allows remote attackers to cause a denial of service (uninitialized pointer dereference) or possibly have unspecified other impact via a crafted TAR archive.

osv:CVE-2016-4343
Complete source record
{
  "id": "9269985d4c8b999d6cff5e6f1af21b4879c3154b1c645275b11cebcb7daff5ed",
  "url": "https://osv.dev/vulnerability/CVE-2016-4343",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-4343",
    "summary": "The phar_make_dirstream function in ext/phar/dirstream.c in PHP before 5.6.18 and 7.x before 7.0.3 mishandles zero-size ././@LongLink files, which allows remote attackers to cause a denial of service (uninitialized pointer dereference) or possibly have unspecified other impact via a crafted TAR archive.",
    "evidence": "osv:CVE-2016-4343",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-4343",
      "aliases": [
        "CVE-2016-4343"
      ],
      "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/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "527e8e73c97e282b1efde24cfb95dc0942e0ad59"
                },
                {
                  "introduced": "fc1df8e7a6886e29a6ed5bef3f674ac61164e847"
                },
                {
                  "fixed": "62cf13d3aa08b15107b02a0505a4f30142fa37b4"
                },
                {
                  "introduced": "60fffd296abce5fc071f3c173c25a2696cf683c6"
                },
                {
                  "fixed": "4e1b8701573698f56e12672e4991d7e6239138d2"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "5.5.36"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0"
                      },
                      {
                        "fixed": "5.6.18"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "fixed": "7.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "POST_PHP7_NSAPI_REMOVAL",
            "PRE_PHP7_NSAPI_REMOVAL",
            "PRE_PHP7_EREG_MYSQL_REMOVALS",
            "PRE_PHP7_REMOVALS",
            "POST_PHP7_REMOVALS",
            "POST_AST_MERGE",
            "PRE_AST_MERGE",
            "POST_64BIT_BRANCH_MERGE",
            "PRE_64BIT_BRANCH_MERGE",
            "POST_PHPNG_MERGE"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4343.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-4343-1be520b7",
                "digest": {
                  "length": 231,
                  "function_hash": "295037734266504677848102670698206975725"
                },
                "source": "https://github.com/php/php-src/commit/4e1b8701573698f56e12672e4991d7e6239138d2",
                "target": {
                  "file": "ext/standard/exec.c",
                  "function": "PHP_MINIT_FUNCTION"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-4343-998c6db5",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "47536493921292488180503894855773419194",
                    "114465696917561743629200732476751433886",
                    "328867887628948915816274583623244400274",
                    "297376920111133995317562874093014086385",
                    "168934627128843040351700635521553019231",
                    "258560438346906560143303805605521795951",
                    "2153196558742618628732246770820228434"
                  ]
                },
                "source": "https://github.com/php/php-src/commit/4e1b8701573698f56e12672e4991d7e6239138d2",
                "target": {
                  "file": "ext/standard/exec.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:12:07Z"
          }
        }
      ],
      "modified": "2026-10-24T14:12:07.797149521Z",
      "provider": "osv",
      "references": [
        "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731",
        "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05320149",
        "https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05390722",
        "https://bugs.php.net/bug.php?id=71331"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:opensuse",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "13.2"
                  },
                  {
                    "last_affected": "13.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-4343",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443328,
  "published_at": "2016-05-22T01:59:17.477+00:00"
}