CVE-2015-7804 json
Off-by-one error in the phar_parse_zipfile function in ext/phar/zip.c in PHP before 5.5.30 and 5.6.x before 5.6.14 allows remote attackers…
published 2015-12-11 10 y ago modified 2026-06-17 4 mo ago also EUVD-2015-7703
- cvss
- 6.8
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 8.5%
- EPSS 8.5% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
Off-by-one error in the phar_parse_zipfile function in ext/phar/zip.c in PHP before 5.5.30 and 5.6.x before 5.6.14 allows remote attackers to cause a denial of service (uninitialized pointer dereference and application crash) by including the / filename in a .zip PHAR archive.
Patch / fix
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.14
ubuntu advisories UBUNTU-CVE-2015-7804
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-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el6
- rh-php56-php RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el7
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el6
- rh-php56-php-gd RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el7
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el6
- rh-php56-php-cli RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el7
- rh-php56-php-dba RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el6
- rh-php56-php-dba RHEL 2 SOFTWARE_COLLECTIONS 5.6.5-8.el7
red hat advisories RHSA-2016:0457
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-2015-7804 updated cvss 4.3
php: uninitialized pointer in phar_make_dirstream()
-
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-php 5.6.5-8.el6, rh-php56-php-gd 5.6.5-8.el6, rh-php56-php-cli 5.6.5-8.el6, rh-php56-php-dba 5.6.5-8.el6, rh-php56-php-dbg 5.6.5-8.el6, rh-php56-php-fpm 5.6.5-8.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php56-php 5.6.5-8.el7, rh-php56-php-gd 5.6.5-8.el7, rh-php56-php-cli 5.6.5-8.el7, rh-php56-php-dba 5.6.5-8.el7, rh-php56-php-dbg 5.6.5-8.el7, rh-php56-php-fpm 5.6.5-8.el7, +20 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.6) rh-php56-php 5.6.5-8.el6, rh-php56-php-gd 5.6.5-8.el6, rh-php56-php-cli 5.6.5-8.el6, rh-php56-php-dba 5.6.5-8.el6, rh-php56-php-dbg 5.6.5-8.el6, rh-php56-php-fpm 5.6.5-8.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php56-php 5.6.5-8.el6, rh-php56-php-gd 5.6.5-8.el6, rh-php56-php-cli 5.6.5-8.el6, rh-php56-php-dba 5.6.5-8.el6, rh-php56-php-dbg 5.6.5-8.el6, rh-php56-php-fpm 5.6.5-8.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.1) rh-php56-php 5.6.5-8.el7, rh-php56-php-gd 5.6.5-8.el7, rh-php56-php-cli 5.6.5-8.el7, rh-php56-php-dba 5.6.5-8.el7, rh-php56-php-dbg 5.6.5-8.el7, rh-php56-php-fpm 5.6.5-8.el7, +20 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.2) rh-php56-php 5.6.5-8.el7, rh-php56-php-gd 5.6.5-8.el7, rh-php56-php-cli 5.6.5-8.el7, rh-php56-php-dba 5.6.5-8.el7, rh-php56-php-dbg 5.6.5-8.el7, rh-php56-php-fpm 5.6.5-8.el7, +20 morefixed: vendor fix RHSA-2016:0457
+2 more productsfewer
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php56-php 5.6.5-8.el6, rh-php56-php-gd 5.6.5-8.el6, rh-php56-php-cli 5.6.5-8.el6, rh-php56-php-dba 5.6.5-8.el6, rh-php56-php-dbg 5.6.5-8.el6, rh-php56-php-fpm 5.6.5-8.el6, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php56-php 5.6.5-8.el7, rh-php56-php-gd 5.6.5-8.el7, rh-php56-php-cli 5.6.5-8.el7, rh-php56-php-dba 5.6.5-8.el7, rh-php56-php-dbg 5.6.5-8.el7, rh-php56-php-fpm 5.6.5-8.el7, +20 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
8.46% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-189 Numeric Errors
- Technology feeds
References
-
lists.opensuse.org
/opensuse-updates/2016-01/msg00099.html
vendor-advisory
-
debian.org
/security/2015/dsa-3380
vendor-advisory
-
lists.apple.com
/archives/security-announce/2015/Dec/msg00005.html
vendor-advisory
-
slackware.com
/security/viewer.php?l=slackware-security&y=2016&m=slackware-security.461720
vendor-advisory
-
ubuntu.com
/usn/USN-2786-1
vendor-advisory
-
security.gentoo.org
/glsa/201606-10
vendor-advisory
-
support.apple.com
/HT205637
vendor-advisory
-
bugs.php.net
/bug.php?id=70433
vendor-advisory
-
securityfocus.com
/bid/76959
vdb-entry
- git.php.net /?p=php-src.git%3Ba=commit%3Bh=1ddf72180a52d247db88ea42a3e35f824a8fbda1
- php.net /ChangeLog-5.php
-
openwall.com
/lists/oss-security/2015/10/05/8
mailing-list
Sources
- CVE List CVE-2015-7804
- NVD CVE-2015-7804
Fencer Intel 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.