CVE-2016-6289 json
Integer overflow in the virtual_file_ex function in TSRM/tsrm_virtual_cwd.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9…
published 2016-07-25 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-7219
- cvss
- 7.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.8%
- EPSS 3.8% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
Integer overflow in the virtual_file_ex function in TSRM/tsrm_virtual_cwd.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 extract operation on a ZIP archive.
Patch / fix
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.19
- php7.0 Ubuntu 16.04 LTS 7.0.8-0ubuntu0.16.04.2
ubuntu advisories UBUNTU-CVE-2016-6289
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el6
- rh-php56 RHEL 2 SOFTWARE_COLLECTIONS 2.3-1.el7
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el6
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.25-1.el7
red hat advisories RHSA-2016:2750
- php7 SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 7.0.7-15.1
- php5 SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 5.5.14-73.1
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.3.17-79.2
- php53 SLES 11 SP2-LTSS 5.3.17-55.1
- php5 SLES 11 SP2-LTSS 5.2.14-0.7.30.89.1
suse advisories SUSE-SU-2016:2460-1SUSE-SU-2016:2460-2SUSE-SU-2016:2408-1SUSE-SU-2016:2328-1SUSE-SU-2016:2210-1SUSE-SU-2016:2080-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-6289 updated cvss 5.3
php: Integer overflow leads to buffer overflow in virtual_file_ex
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Software Collections php54-php, php55-php, php54-php-gd, php55-php-gd, php54-php-cli, php54-php-dba, +44 moreaffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php56 2.3-1.el6, rh-php56-php 5.6.25-1.el6, rh-php56-runtime 2.3-1.el6, rh-php56-scldevel 2.3-1.el6, rh-php56-php-gd 5.6.25-1.el6, rh-php56-php-cli 5.6.25-1.el6, +26 morefixed: vendor fix RHSA-2016:2750
+1 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php56 2.3-1.el7, rh-php56-php 5.6.25-1.el7, rh-php56-runtime 2.3-1.el7, rh-php56-scldevel 2.3-1.el7, rh-php56-php-gd 5.6.25-1.el7, rh-php56-php-cli 5.6.25-1.el7, +24 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.79% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- bugs.php.net https://bugs.php.net/72513 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
- Technology feeds
References
-
bugs.php.net
/72513
exploit, issue-tracking, mitigation, third-party-advisory
-
lists.apple.com
/archives/security-announce/2016/Sep/msg00006.html
vendor-advisory
-
security.gentoo.org
/glsa/201611-22
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2016-2750.html
vendor-advisory
-
debian.org
/security/2016/dsa-3631
vendor-advisory
-
fortiguard.com
/advisory/fortinet-discovers-php-stack-based-buffer-overflow-vulnerabilities
third-party-advisory
- git.php.net /?p=php-src.git%3Ba=commit%3Bh=0218acb7e756a469099c4ccfb22bce6c2bd1ef87
-
php.net
/ChangeLog-5.php
release-notes
-
securitytracker.com
/id/1036430
vdb-entry
-
securityfocus.com
/bid/92074
vdb-entry, third-party-advisory
-
php.net
/ChangeLog-7.php
release-notes
-
openwall.com
/lists/oss-security/2016/07/24/2
mailing-list
- support.apple.com /HT207170
Sources
- CVE List CVE-2016-6289
- NVD CVE-2016-6289
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.