CVE-2010-2094: Medium severity PHP PHP vulnerability

Published May 14, 2010
·
Updated

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

3 affected componentsFixes available
redhat/php<5.3.3
5.3.3
PHP PHP=5.3.1
PHP PHP=5.3.0

Event History

May 14, 2010
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverity
May 27, 2010
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
via NVD·10:30 PM
DescriptionSeverityWeaknessAffected Software
Jun 1, 2010
Data Sourced
via Red Hat·03:21 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2010-2094?

To fix CVE-2010-2094, upgrade PHP to version 5.3.3 or later.

3

What versions of PHP are affected by CVE-2010-2094?

CVE-2010-2094 affects PHP versions 5.3.0 and 5.3.1.

4

Can CVE-2010-2094 be exploited remotely?

Yes, CVE-2010-2094 can be exploited by context-dependent attackers which may allow remote code execution.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203