PHP 'open_basedir' Security Bypass Vulnerability

Summary
This host is installed with PHP and is prone to security bypass vulnerability.
Impact
Successful exploitation will allow remote attackers to read arbitrary files. Impact Level: Application
Solution
No solution or patch was made available for at least one year since disclosure of this vulnerability. Likely none will be provided anymore. General solution options are to upgrade to a newer release, disable respective features, remove the product or replace the product by another one.
Insight
The flaw is in libxml RSHUTDOWN function which allows to bypass open_basedir protection mechanism through stream_close method call.
Affected
PHP versions 5.x.0 to 5.0.5, 5.1.0 to 5.1.6, 5.2.0 to 5.2.17, 5.3.0 to 5.3.27, 5.4.0 to 5.4.23 and 5.5.0 to 5.5.6.
Detection
Get the installed version of PHP with the help of detect NVT and check the version is vulnerable or not.
References