CVE-2012-1171: Infoleak
From PHP bug 61367:
The libxml RSHUTDOWN function disables the hooks which are used to implement openbasedir. It is possible to run user code after RSHUTDOWN, for example using the streamclose() method of a custom stream wrapper. Such code is able to read arbitrary files via libxml.
The suggested fix is to move the code which disables the hooks to a post-deactivate function. All op arrays are destroyed before post-deactivate, so it is not possible for user code to be executed after post-deactivate.
Other sources
The libxml RSHUTDOWN function in PHP 5.x allows remote attackers to bypass the openbasedir protection mechanism and read arbitrary files via vectors involving a streamclose method call during use of a custom stream wrapper.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2012-1171?
CVE-2012-1171 is considered a high severity vulnerability due to its potential to bypass security restrictions.
How do I fix CVE-2012-1171?
To fix CVE-2012-1171, upgrade your PHP version to a fixed version that addresses this vulnerability.
What versions of PHP are affected by CVE-2012-1171?
CVE-2012-1171 affects PHP versions 5.0.0 to 5.5.6, including various beta and release candidates.
What is the impact of CVE-2012-1171?
The impact of CVE-2012-1171 is that it can allow unauthorized access to files and run arbitrary user code.
Is CVE-2012-1171 publicly known?
Yes, CVE-2012-1171 is a publicly documented vulnerability within the PHP bug tracking system.