Skip to content
OpenAdvisories
Unscored CVE-2015-4025 EUVD-2015-4053GHSA-8472-42qg-pj78

PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 truncates a pathname upon encountering a \x00 character in certain situation…

Published Jun 9, 2015 · Updated Aug 6, 2024 · Assigned by mitre

Description

PHP before 5.4.41, 5.5.x before 5.5.25, and 5.6.x before 5.6.9 truncates a pathname upon encountering a \x00 character in certain situations, which allows remote attackers to bypass intended extension restrictions and access files or directories with unexpected names via a crafted argument to (1) set_include_path, (2) tempnam, (3) rmdir, or (4) readlink. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-7243.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 8 php5 5.6.9+dfsg-0+deb8u1 DSA-3280-1
Debian 7 php5 5.4.41-0+deb7u1 DSA-3280-1
Debian 6.0 php5 5.3.3.1-7+squeeze27 DLA-307-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.11 USN-2658-1
ReleasePackageFixed inAdvisory
RHEL 7 php +24 5.4.16-36.ael7b_1 RHSA-2015:1135
RHEL 2 php54-php +24 5.4.40-3.el6 RHSA-2015:1219
RHEL 2 php55-php +26 5.5.21-4.el6 RHSA-2015:1186
RHEL 2 rh-php56-php +27 5.6.5-7.el6 RHSA-2015:1187
ReleasePackageFixed inAdvisory
SLES 12 SP3 php5 5.5.14-109.13.1 SUSE-SU-2017:3277-1
SLES 12 SP2 php5 5.5.14-109.13.1 SUSE-SU-2017:3277-1
SLES 12 php5 5.5.14-109.13.1 SUSE-SU-2017:3277-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 php +24 5.4.16-36.el7_1 ELSA-2015-1135
Oracle Linux 7 php54-php +22 5.4.40-3.el7 ELSA-2015-1219
Oracle Linux 7 php54-php-imap +1 5.4.40-3.el6 ELSA-2015-1219
Oracle Linux 7 php55-php +24 5.5.21-4.el7 ELSA-2015-1186

Advisories 11

References