CVE Catalog

CVE-2015-4025

High
Published: Translated: NVD NIST

Summary

A vulnerability in PHP before versions 5.4.41, 5.5.25, and 5.6.9 truncates a pathname upon encountering a null character (\x00) in certain situations. This allows a remote attacker to bypass extension restrictions and access files or directories with unexpected names via a crafted argument to set_include_path, tempnam, rmdir, or readlink. This is an incomplete fix for CVE-2006-7243.

Risk Assessment

An attacker can bypass restrictions on allowed file extensions, potentially leading to unauthorized access to sensitive data or execution of malicious code.

Recommendation

Immediately upgrade PHP to version 5.4.41, 5.5.25, 5.6.9 or later. If upgrading is not possible, restrict access to the set_include_path, tempnam, rmdir, and readlink functions and filter input for null characters.

Related vulnerabilities

Original NVD description (English source)

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.

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