CVE-2010-2094: Medium severity PHP PHP vulnerability
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-2094 to the following vulnerability:
Multiple format string vulnerabilities in the phar extension in PHP 5.3 before 5.3.2 allow context-dependent attackers to obtain sensitive information (memory contents) and possibly execute arbitrary code via a crafted phar:// URI that is not properly handled by the (1) pharstreamflush, (2) pharwrapperunlink, (3) pharparseurl, or (4) pharwrapperopenurl functions in ext/phar/stream.c; and the (5) pharwrapperopendir function in ext/phar/dirstream.c, which triggers errors in the phpstreamwrapperlogerror function.
References: [1] http://php-security.org/2010/05/14/mops-2010-024-php-pharstreamflush-format-string-vulnerability/index.html [2] http://php-security.org/2010/05/14/mops-2010-025-php-pharwrapperopendir-format-string-vulnerability/index.html [3] http://php-security.org/2010/05/14/mops-2010-026-php-pharwrapperunlink-format-string-vulnerability/index.html [4] http://php-security.org/2010/05/14/mops-2010-027-php-pharparseurl-format-string-vulnerabilities/index.html [5] http://php-security.org/2010/05/14/mops-2010-028-php-pharwrapperopenurl-format-string-vulnerabilities/index.html
Public PoC (from [1]):
$ php -r "fopen('phar:///usr/bin/phar.phar/%08x-%08x-%08x-%08x-%08x-%08x-%08x-%08x-%08x','r');"
Credit: All flaws discovered by Stefan Esser.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2010-2094?
CVE-2010-2094 has a medium severity rating due to potential impact from multiple format string vulnerabilities.
How do I fix CVE-2010-2094?
To fix CVE-2010-2094, upgrade PHP to version 5.3.3 or later.
What versions of PHP are affected by CVE-2010-2094?
CVE-2010-2094 affects PHP versions 5.3.0 and 5.3.1.
Can CVE-2010-2094 be exploited remotely?
Yes, CVE-2010-2094 can be exploited by context-dependent attackers which may allow remote code execution.
Is there a workaround for CVE-2010-2094?
The best practice is to upgrade to a secure version of PHP, as no reliable workaround exists for CVE-2010-2094.