CVE-2018-15132: Infoleak
An issue was discovered in ext/standard/linkwin32.c in PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8. The linkinfo function on Windows doesn't implement the openbasedir check. This could be abused to find files on paths outside of the allowed directories.
Other sources
Fixed bug (windows linkinfo lacks openbasedir check). (CVE-2018-15132)
— PHP
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.0.31 - Upgrade
Upgrade
alpine/php7to a version that resolves this vulnerability.Fixed in 7.1.29-r0 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 5.6.37 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.1.20 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.2.8
Event History
Frequently Asked Questions
What is the severity of CVE-2018-15132?
CVE-2018-15132 is considered a medium severity vulnerability due to its ability to expose sensitive file paths.
How do I fix CVE-2018-15132?
To fix CVE-2018-15132, upgrade PHP to versions 5.6.37, 7.0.31, 7.1.20, or 7.2.8 or later.
What systems are affected by CVE-2018-15132?
CVE-2018-15132 affects PHP versions prior to 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8 on Windows.
What is the impact of CVE-2018-15132?
The impact of CVE-2018-15132 is that it allows attackers to bypass the open_basedir restriction, potentially leading to information disclosure.
Is there a workaround for CVE-2018-15132?
As a temporary workaround for CVE-2018-15132, you could restrict access to sensitive directories while planning to update PHP.