CVE-2012-1171
What it is
The libxml RSHUTDOWN function in PHP 5.x allows remote attackers to bypass the open_basedir protection mechanism and read arbitrary files via vectors involving a stream_close method call during use of a custom stream wrapper.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 2.8% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 2.8% in the next 30 days (EPSS).
- Severity: 5.0 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 2.8% · EPSS, next 30 days
- Weakness
- CWE-200 · Information exposure
- Record status
- Modified
Affected
- PHP 5.0.0
- PHP 5.0.1
- PHP 5.0.2
- PHP 5.0.3
- PHP 5.0.4
- PHP 5.0.5
- PHP 5.1.0
- PHP 5.1.1
Attack profile CVSS 2.0 · 5.0
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
Raw vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2012-1171.md and follow it. Check whether this project is affected by CVE-2012-1171. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/php/php-src/blob/master/ext/libxml/tests/bug61367-read.phpt
- https://github.com/php/php-src/blob/master/ext/libxml/tests/bug61367-read.phpt
References
- https://bugs.php.net/bug.php?id=61367
- https://bugzilla.redhat.com/show_bug.cgi?id=802591
- https://github.com/php/php-src/blob/master/ext/libxml/tests/bug61367-read.phpt
- https://github.com/php/php-src/blob/master/ext/libxml/tests/bug61367-write.phpt
- https://bugs.php.net/bug.php?id=61367
- https://bugzilla.redhat.com/show_bug.cgi?id=802591
- https://github.com/php/php-src/blob/master/ext/libxml/tests/bug61367-read.phpt
- https://github.com/php/php-src/blob/master/ext/libxml/tests/bug61367-write.phpt