← Vulnerability feed

Vulnerability record · CVE-2016-3078 · published 7 August 2016

CVE-2016-3078: PHP zip extension integer overflow in ZipArchive methods

Php · Php

PHP before 7.0.6 contains multiple integer overflows in php_zip.c in the zip extension. A crafted call to ZipArchive::getFromIndex or getFromName triggers a heap-based buffer overflow, crashing the application and potentially allowing further impact.

9.8 CVSS 3.1 Critical EPSS 56% · top 1.0% CWE-190 · Integer overflow
9.8CVSS 3.1 base score, v2 7.5
56%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
14References, 6 tagged exploit
17 Jun 2026Last modified by NVD

Description

Multiple integer overflows in php_zip.c in the zip extension in PHP before 7.0.6 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted call to (1) getFromIndex or (2) getFromName in the ZipArchive class.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: high.

high priorityCritical CVSS 9.8 and very high EPSS with public exploit code, though not listed in KEV and the flaw is in a specific extension method.

What it is

PHP before 7.0.6 contains multiple integer overflows in php_zip.c in the zip extension. A crafted call to ZipArchive::getFromIndex or getFromName triggers a heap-based buffer overflow, crashing the application and potentially allowing further impact.

Impact

An attacker can crash the PHP process (denial of service) and, given the heap overflow, possibly achieve code execution or other unspecified impact.

Attack surface

Reached remotely over the network with no authentication and no user interaction required, per the CVSS vector AV:N/AC:L/PR:N/UI:N. Any application that passes attacker-influenced input to ZipArchive::getFromIndex or getFromName is exposed.

Exploitation

Not listed in CISA KEV, but EPSS is 0.56132 (99th percentile) and multiple references are tagged Exploit, including Exploit-DB 39742, indicating public exploit code exists.

What to do

  • Upgrade PHP to 7.0.6 or later, or apply the vendor patch commit 3b8d4de300854b3517c7acb239b84f7726c1353c.
  • If immediate upgrade is not possible, disable or restrict use of the zip extension where it is not needed.
  • Validate and sanitize all input passed to ZipArchive::getFromIndex and getFromName, and avoid processing untrusted archives.
  • Run PHP with memory limits and process isolation to reduce the impact of a heap overflow.
  • Monitor vendor and distribution advisories for backported fixes if running a packaged PHP build.

Detection

  • Look for PHP process crashes or segfaults correlated with zip extension usage in application and system logs.
  • Monitor for requests that supply archive paths or indices to endpoints invoking ZipArchive::getFromIndex or getFromName.
  • Use exploit signatures for Exploit-DB 39742 in network or host IDS where available.
  • Track PHP version inventory to identify hosts still running versions before 7.0.6.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.openwall.com/lists/oss-security/2016/04/28/1 ExploitMailing ListThird Party Advisory
http://www.securitytracker.com/id/1035701 Broken LinkThird Party AdvisoryVDB Entry
https://bugs.php.net/bug.php?id=71923 ExploitIssue TrackingVendor Advisory
https://github.com/php/php-src/commit/3b8d4de300854b3517c7acb239b84f7726c1353c?w=1 PatchThird Party Advisory
https://php.net/ChangeLog-7.php Release NotesVendor Advisory
https://security-tracker.debian.org/tracker/CVE-2016-3078 Third Party Advisory
https://www.exploit-db.com/exploits/39742/ ExploitThird Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2016/04/28/1 ExploitMailing ListThird Party Advisory
http://www.securitytracker.com/id/1035701 Broken LinkThird Party AdvisoryVDB Entry
https://bugs.php.net/bug.php?id=71923 ExploitIssue TrackingVendor Advisory
https://github.com/php/php-src/commit/3b8d4de300854b3517c7acb239b84f7726c1353c?w=1 PatchThird Party Advisory
https://php.net/ChangeLog-7.php Release NotesVendor Advisory
https://security-tracker.debian.org/tracker/CVE-2016-3078 Third Party Advisory
https://www.exploit-db.com/exploits/39742/ ExploitThird Party AdvisoryVDB Entry

Track CVE-2016-3078 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed10.0CVE-2012-2688Php vulnerabilityUnspecified vulnerability in the _php_stream_scandir function in the stream implementation in PHP before 5.3.15 and 5.4.x before 5.4.5 has unknown im…EPSS 10%10.0CVE-2012-2376Php memory buffer overflow vulnerabilityBuffer overflow in the com_print_typeinfo function in PHP 5.4.3 and earlier on Windows allows remote attackers to execute arbitrary code via crafted …EPSS 20%10.0CVE-2011-3268Php memory buffer overflow vulnerabilityBuffer overflow in the crypt function in PHP before 5.3.7 allows context-dependent attackers to have an unspecified impact via a long salt argument, …EPSS 5.7%10.0CVE-2009-4143Php vulnerabilityPHP before 5.2.12 does not properly handle session data, which has unspecified impact and attack vectors related to (1) interrupt corruption of the S…EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2016-3078), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.