CVE Catalog

CVE-2004-1063

High
Published: Translated: NVD NIST

Summary

Vulnerability in PHP 4.x up to 4.3.9 and PHP 5.x up to 5.0.2, running in safe mode on a multithreaded Unix webserver, allows local users to bypass safe_mode_exec_dir restrictions and execute commands outside of the intended directory by using shell metacharacters in the current directory name.

Risk Assessment

The risk involves the ability for a local user to execute arbitrary system commands outside the allowed directory, potentially leading to privilege escalation or system integrity compromise.

Recommendation

It is recommended to upgrade PHP to a version later than 4.3.9 or 5.0.2, or if an upgrade is not possible, disable safe mode or apply additional security measures at the operating system level.

Related vulnerabilities

Original NVD description (English source)

PHP 4.x to 4.3.9, and PHP 5.x to 5.0.2, when running in safe mode on a multithreaded Unix webserver, allows local users to bypass safe_mode_exec_dir restrictions and execute commands outside of the intended safe_mode_exec_dir via shell metacharacters in the current directory name. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.

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