Skip to content
Fencer Intel
high 7.3

CVE-2015-5590 json

Stack-based buffer overflow in the phar_fix_filepath function in ext/phar/phar.c in PHP before 5.4.43, 5.5.x before 5.5.27, and 5.6.x befor…

published 2016-01-19 10 y ago modified 2026-06-17 4 mo ago also EUVD-2015-5544

cvss
7.3
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
4.6%
EPSS 4.6% chance of exploitation in 30 days, percentile 91%
public exploits
0
none known

Summary

Stack-based buffer overflow in the phar_fix_filepath function in ext/phar/phar.c in PHP before 5.4.43, 5.5.x before 5.5.27, and 5.6.x before 5.6.11 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large length value, as demonstrated by mishandling of an e-mail attachment by the imap PHP extension.

Patch / fix

  • php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.13

ubuntu advisories UBUNTU-CVE-2015-5590

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

  • php5 SLE Software Development Kit 12, SLE Module for Web and Scripting 12 5.5.14-33.2
  • php53 SLES for SAP 11 SP4, SLES for SAP 11 SP3, SLES 11 SP4 +4 more 5.3.17-45.1
  • php53 SLES 11 SP2-LTSS 5.3.17-47.1

suse advisories SUSE-SU-2016:1638-1SUSE-SU-2015:1425-1SUSE-SU-2015:1466-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-2015-5590 updated cvss 4.3

php: buffer overflow and stack smashing error in phar_fix_filepath

  • 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 more
    affected: 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 more
    +2 more products
    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
    fixed: vendor fix RHSA-2016:0457

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

4.63% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • bugs.php.net https://bugs.php.net/bug.php?id=69923 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 7.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD 2.0 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Technology feeds

References

Sources

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.