Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-6297

Integer overflow in the php_stream_zip_opener function in ext/zip/zip_stream.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted zip:// URL.

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

Source evidence

CVE-2016-6297

core-osv · Original source

Published 25 Jul 2016, 14:59 UTC

Integer overflow in the php_stream_zip_opener function in ext/zip/zip_stream.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted zip:// URL.

osv:CVE-2016-6297
Complete source record
{
  "id": "9a747a73c87f1f22a4c4c80773dbcab2543019b9983667e1a8aeb27aed5b4c94",
  "url": "https://osv.dev/vulnerability/CVE-2016-6297",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-6297",
    "summary": "Integer overflow in the php_stream_zip_opener function in ext/zip/zip_stream.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted zip:// URL.",
    "evidence": "osv:CVE-2016-6297",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2016-6297",
      "aliases": [
        "CVE-2016-6297"
      ],
      "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": "d5747a70cf612e653b0e56dfa50efb29bbba273d"
                },
                {
                  "introduced": "8648f76bac2f78391a1539253f21d62f53d83022"
                },
                {
                  "last_affected": "a36407215f69ba2debf77933dcb3faa0c3ba2d04"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "5.5.37"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-alpha1"
                      },
                      {
                        "last_affected": "5.6.0-alpha1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-alpha2"
                      },
                      {
                        "last_affected": "5.6.0-alpha2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-alpha3"
                      },
                      {
                        "last_affected": "5.6.0-alpha3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta1"
                      },
                      {
                        "last_affected": "5.6.0-beta1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta2"
                      },
                      {
                        "last_affected": "5.6.0-beta2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta3"
                      },
                      {
                        "last_affected": "5.6.0-beta3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.0-beta4"
                      },
                      {
                        "last_affected": "5.6.0-beta4"
                      }
                    ],
                    "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:5.6.18:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.18"
                      },
                      {
                        "last_affected": "5.6.18"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.19:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.19"
                      },
                      {
                        "last_affected": "5.6.19"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.20"
                      },
                      {
                        "last_affected": "5.6.20"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.21:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.21"
                      },
                      {
                        "last_affected": "5.6.21"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.22:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.22"
                      },
                      {
                        "last_affected": "5.6.22"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:5.6.23:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.6.23"
                      },
                      {
                        "last_affected": "5.6.23"
                      }
                    ],
                    "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"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.3"
                      },
                      {
                        "last_affected": "7.0.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.4"
                      },
                      {
                        "last_affected": "7.0.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.5"
                      },
                      {
                        "last_affected": "7.0.5"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.6"
                      },
                      {
                        "last_affected": "7.0.6"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.7"
                      },
                      {
                        "last_affected": "7.0.7"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.0.8"
                      },
                      {
                        "last_affected": "7.0.8"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.6.0-alpha1",
            "5.6.0-alpha2",
            "5.6.0-alpha3",
            "5.6.0-beta1",
            "5.6.0-beta2",
            "5.6.0-beta3",
            "5.6.0-beta4",
            "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.18",
            "5.6.19",
            "5.6.2",
            "5.6.20",
            "5.6.21",
            "5.6.22",
            "5.6.23",
            "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",
            "7.0.3",
            "7.0.4",
            "7.0.5",
            "7.0.6",
            "7.0.7",
            "7.0.8",
            "php-7.0.8",
            "php-5.5.37",
            "php-7.0.8RC1",
            "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-6297.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:47.161737542Z",
      "provider": "osv",
      "references": [
        "https://support.apple.com/HT207170",
        "https://security.gentoo.org/glsa/201611-22",
        "https://bugs.php.net/72520"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*",
              "cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*"
            ],
            "vendor_product": "php:php",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.6.0-alpha4"
                  },
                  {
                    "last_affected": "5.6.0-alpha4"
                  },
                  {
                    "introduced": "5.6.0-alpha5"
                  },
                  {
                    "last_affected": "5.6.0-alpha5"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-6297",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 436478,
  "published_at": "2016-07-25T14:59:11.467+00:00"
}