CVE Catalog

CVE-2015-4026

High
Published: Translated: NVD NIST

Summary

The pcntl_exec implementation in PHP before versions 5.4.41, 5.5.25, and 5.6.9 truncates a pathname upon encountering a null byte (\x00), allowing remote attackers to bypass extension restrictions and execute files with unexpected names via a crafted first argument.

Risk Assessment

An attacker can bypass security mechanisms that check file extensions, leading to unauthorized code execution on the server.

Recommendation

Immediately upgrade PHP to version 5.4.41, 5.5.25, 5.6.9 or later, which includes the complete fix for this vulnerability.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS