Description
Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the file path after the open_basedir check and before the file is opened by the underlying system, as demonstrated by symlinking a symlink into a subdirectory, to point to a parent directory via .. (dot dot) sequences, and then unlinking the resulting symlink.
Remediation
References
Related Vulnerabilities
WordPress Plugin Booking Calendar PHP Object Injection (9.1)
concrete5 Unrestricted Upload of File with Dangerous Type Vulnerability (CVE-2020-11476)
Drupal Exposure of Sensitive Information to an Unauthorized Actor Vulnerability (CVE-2012-5652)
WordPress Plugin WP Statistics Cross-Site Scripting (12.6.5)
WordPress Plugin Broken Link Manager Cross-Site Scripting (0.5.5)