First published: Mon Sep 26 2005(Updated: )
fopen_wrappers.c in PHP 4.4.0, and possibly other versions, does not properly restrict access to other directories when the open_basedir directive includes a trailing slash, which allows PHP scripts in one directory to access files in other directories whose names are substrings of the original directory.
Credit: security@debian.org
Affected Software | Affected Version | How to fix |
---|---|---|
PHP | =4.4.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2005-3054 has been classified as a moderate severity vulnerability.
CVE-2005-3054 allows PHP scripts to access files outside of their designated directories when the open_basedir directive is misconfigured.
To fix CVE-2005-3054, ensure that the open_basedir directive is correctly set without a trailing slash.
CVE-2005-3054 specifically affects PHP version 4.4.0 and potentially other versions leading up to that release.
Yes, upgrading to a later version of PHP that addresses this vulnerability is recommended to mitigate CVE-2005-3054.