CVE-2015-3412
PHP before 5.4.40, 5.5.x before 5.5.24, and 5.6.x before 5.6.8 does not ensure that pathnames lack %00 sequences, which might allow remote attackers to read arbitrary files via crafted input to an application that calls the stream_resolve_include_path function in ext/standard/streamsfuncs.c, as demonstrated by a filename\0.extension attack that bypasses an intended configuration in which client users may read files with only one specific extension.
What to do
Fixed builds are available from Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 14.04 | php5 | Fixed | 5.5.9+dfsg-1ubuntu4.11 | UBUNTU-CVE-2015-3412 |
| Red Hat Enterprise Linux 7 | php | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-bcmath | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-cli | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-common | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-dba | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-devel | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-embedded | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-enchant | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-fpm | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-gd | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-intl | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-ldap | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mbstring | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mysql | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-mysqlnd | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-odbc | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pdo | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pgsql | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-process | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-pspell | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-recode | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-snmp | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-soap | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-xml | Fixed | 0:5.4.16-36.el7_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 7 | php-xmlrpc | Fixed | 0:5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| Red Hat Enterprise Linux 6 | php | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-bcmath | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-cli | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-common | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-dba | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-devel | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-embedded | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-enchant | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-fpm | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-gd | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-imap | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-intl | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-ldap | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-mbstring | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-mysql | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-odbc | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-pdo | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-pgsql | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-process | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-pspell | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-recode | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-snmp | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-soap | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-tidy | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-xml | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-xmlrpc | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 6 | php-zts | Fixed | 0:5.3.3-46.el6_6 | RHSA-2015:1218 |
| Red Hat Enterprise Linux 5 | php | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | php53 | Will not fix Will not fix |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://rhn.redhat.com/errata/RHSA-2015-1187.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1186.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1135.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1218.html (vendor-advisory)
References
- http://rhn.redhat.com/errata/RHSA-2015-1187.html
- http://www.securitytracker.com/id/1032709
- http://rhn.redhat.com/errata/RHSA-2015-1186.html
- https://bugs.php.net/bug.php?id=69353
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=4435b9142ff9813845d5c97ab29a5d637bedb257
- http://php.net/ChangeLog-5.php
- http://rhn.redhat.com/errata/RHSA-2015-1135.html
- http://www.securityfocus.com/bid/75250
- http://rhn.redhat.com/errata/RHSA-2015-1218.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.