The pcntl_exec implementation in 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, which might allow remote attackers to bypass intended extension restrictions and execute files with unexpected names via a crafted first argument. NOTE: this vulnerability exists because of an incomplete fix for CVE-2006-7243.
Branches: PHP 5.6, PHP 5.5, PHP 5.4 · Check: 5.6.0, 5.5.0, 5.4.40
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.
Branches: PHP 5.6, PHP 5.5, PHP 5.4 · Check: 5.6.0, 5.5.0, 5.4.40
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.
Branches: PHP 5.6, PHP 5.5, PHP 5.4 · Check: 5.6.0, 5.5.0, 5.4.38
PHP before 5.3.4 accepts the \0 character in a pathname, which might allow context-dependent attackers to bypass intended access restrictions by placing a safe file extension after this character, as demonstrated by .php\0.jpg at the end of the argument to the file_exists function.
Branches: PHP 5.3, PHP 5.2, PHP 5.1, PHP 5.0, PHP 4.4, PHP 4.3, PHP 4.2, PHP 4.1 +2 more · Check: 5.3.3, 5.2.0, 5.1.0