Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-4342

ext/phar/phar_object.c in PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3 mishandles zero-length uncompressed data, which allows remote attackers to cause a denial of service (heap memory corruption) or possibly have unspecified other impact via a crafted (1) TAR, (2) ZIP, or (3) PHAR archive.

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

Source evidence

CVE-2016-4342

core-osv · Original source

Published 22 May 2016, 01:59 UTC

ext/phar/phar_object.c in PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3 mishandles zero-length uncompressed data, which allows remote attackers to cause a denial of service (heap memory corruption) or possibly have unspecified other impact via a crafted (1) TAR, (2) ZIP, or (3) PHAR archive.

osv:CVE-2016-4342
Complete source record
{
  "id": "e76c7ffb60c0d2fcf6b7c48a2a84137ea56e465df1d3fe9d58af3b35fbfc7204",
  "url": "https://osv.dev/vulnerability/CVE-2016-4342",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-4342",
    "summary": "ext/phar/phar_object.c in PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3 mishandles zero-length uncompressed data, which allows remote attackers to cause a denial of service (heap memory corruption) or possibly have unspecified other impact via a crafted (1) TAR, (2) ZIP, or (3) PHAR archive.",
    "evidence": "osv:CVE-2016-4342",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-4342",
      "aliases": [
        "CVE-2016-4342"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/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"
                },
                {
                  "last_affected": "6c78ce66de2a9c4f872ae67b967a5c6e2a8f6c47"
                },
                {
                  "introduced": "fc1df8e7a6886e29a6ed5bef3f674ac61164e847"
                },
                {
                  "last_affected": "038c63cdea0472176ec2fdb162cfbd96e8c5f83e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.5.31"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0"
                      },
                      {
                        "last_affected": "5.6.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.1"
                      },
                      {
                        "last_affected": "5.6.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.2"
                      },
                      {
                        "last_affected": "5.6.2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.3"
                      },
                      {
                        "last_affected": "5.6.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.4"
                      },
                      {
                        "last_affected": "5.6.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.5"
                      },
                      {
                        "last_affected": "5.6.5"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.6"
                      },
                      {
                        "last_affected": "5.6.6"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.7"
                      },
                      {
                        "last_affected": "5.6.7"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.8"
                      },
                      {
                        "last_affected": "5.6.8"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.9"
                      },
                      {
                        "last_affected": "5.6.9"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.10"
                      },
                      {
                        "last_affected": "5.6.10"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.11"
                      },
                      {
                        "last_affected": "5.6.11"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.12"
                      },
                      {
                        "last_affected": "5.6.12"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.13"
                      },
                      {
                        "last_affected": "5.6.13"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.14"
                      },
                      {
                        "last_affected": "5.6.14"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.15"
                      },
                      {
                        "last_affected": "5.6.15"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.16"
                      },
                      {
                        "last_affected": "5.6.16"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.17:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.17"
                      },
                      {
                        "last_affected": "5.6.17"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.0"
                      },
                      {
                        "last_affected": "7.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.1"
                      },
                      {
                        "last_affected": "7.0.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.2"
                      },
                      {
                        "last_affected": "7.0.2"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.6.0",
            "5.6.1",
            "5.6.10",
            "5.6.11",
            "5.6.12",
            "5.6.13",
            "5.6.14",
            "5.6.15",
            "5.6.16",
            "5.6.17",
            "5.6.2",
            "5.6.3",
            "5.6.4",
            "5.6.5",
            "5.6.6",
            "5.6.7",
            "5.6.8",
            "5.6.9",
            "7.0.0",
            "7.0.1",
            "7.0.2",
            "php-5.5.31",
            "php-7.0.2",
            "php-7.0.2RC1",
            "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-4342.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:45.279642474Z",
      "provider": "osv",
      "references": [
        "https://bugs.php.net/bug.php?id=71354",
        "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"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "42.1"
                  },
                  {
                    "last_affected": "42.1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-4342",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 436079,
  "published_at": "2016-05-22T01:59:16.337+00:00"
}