Skip to content
OpenAdvisories
Unscored CVE-2015-2348 EUVD-2015-2441GHSA-x58x-2jp5-xfv7

The move_uploaded_file implementation in ext/standard/basic_functions.c in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 t…

Published Mar 30, 2015 · Updated Aug 6, 2024 · Assigned by mitre

Description

The move_uploaded_file implementation in ext/standard/basic_functions.c in PHP before 5.4.39, 5.5.x before 5.5.23, and 5.6.x before 5.6.7 truncates a pathname upon encountering a \x00 character, which allows remote attackers to bypass intended extension restrictions and create files with unexpected names via a crafted second argument. 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 7 php5 5.4.39-0+deb7u1 DSA-3198-1
Debian 6.0 php5 5.3.3.1-7+squeeze29 DLA-444-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.9 USN-2572-1
ReleasePackageFixed inAdvisory
RHEL 7 php +24 5.4.16-36.ael7b_1 RHSA-2015:1135
RHEL 2 php54 +5 2.0-1.el6 RHSA-2015:1066, RHSA-2015:1053
RHEL 2 php54-php +24 5.4.40-1.el6 RHSA-2015:1066
RHEL 2 php54-php-pecl-zendopcache 7.0.4-3.el6 RHSA-2015:1066
RHEL 2 php55-php +26 5.5.21-2.el6 RHSA-2015:1053
ReleasePackageFixed inAdvisory
SLES 12 php5 5.5.14-22.1 SUSE-SU-2015:0868-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 php +24 5.4.16-36.el7_1 ELSA-2015-1135
Oracle Linux 7 php54 +5 2.0-1.el7 ELSA-2015-1066, ELSA-2015-1053
Oracle Linux 7 php54-php +22 5.4.40-1.el7 ELSA-2015-1066
Oracle Linux 7 php54-php-imap +1 5.4.40-1.el6 ELSA-2015-1066
Oracle Linux 7 php54-php-pecl-zendopcache 7.0.4-3.el7 ELSA-2015-1066
Oracle Linux 7 php55-php +26 5.5.21-2.0.1.el6 ELSA-2015-1053

Advisories 14

References