CVE-2016-3078

CRITICAL

PHP < 7.0.6 - Integer Overflow in ZipArchive getFromIndex and getFromName

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2016-3078. PoCs published by Hans Jerry Illikainen.

AI-analyzed exploit summary The exploit leverages an integer wrap vulnerability in PHP 7.x before 7.0.6, where the `getFromIndex()` and `getFromName()` methods of `ZipArchive` mishandle large uncompressed file sizes, leading to a heap overflow. The PoC demonstrates remote code execution (RCE) by triggering the vulnerability in a PHP-FPM environment.

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.

Exploits (1)

exploitdb WORKING POC
by Hans Jerry Illikainen · textremotephp
https://www.exploit-db.com/exploits/39742

The exploit leverages an integer wrap vulnerability in PHP 7.x before 7.0.6, where the `getFromIndex()` and `getFromName()` methods of `ZipArchive` mishandle large uncompressed file sizes, leading to a heap overflow. The PoC demonstrates remote code execution (RCE) by triggering the vulnerability in a PHP-FPM environment.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PHP 7.x before 7.0.6
No auth needed
Prerequisites: PHP 7.x before 7.0.6 with ZipArchive enabled · Ability to upload a malicious ZIP file to the target server
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (7)

Core 7
Core References
Exploit, Issue Tracking, Vendor Advisory x_refsource_confirm
https://bugs.php.net/bug.php?id=71923
Exploit, Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/04/28/1
Third Party Advisory x_refsource_confirm
https://security-tracker.debian.org/tracker/CVE-2016-3078
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/39742/
Release Notes, Vendor Advisory x_refsource_confirm
https://php.net/ChangeLog-7.php
Broken Link, Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1035701

Scores

CVSS v3 9.8
EPSS 0.4811
EPSS Percentile 97.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-190
Status published
Products (1)
php/php 7.0.0 - 7.0.6
Published Aug 07, 2016
Tracked Since Feb 18, 2026