CVE-2010-4156: Input Validation
An information disclosure flaw was found in the PHP mbstruct function.
mbstrcut() returns garbage when the following conditions are met: 1. The value specified to length parameter exceeds the length of the subject string. 2. mbstring.internalencoding is set to some single-byte encoding.
The garbage may consist of uncleared part of the heap that has previously been used for some purpose, which could lead to unexpected information exposure. This only affects PHP 5.3 and above.
This bug was originally reported to php upstream by Mateusz Kocielski.
Common Vulnerabilities and Exposures assigned an identifier CVE-2010-4156 to the above vulnerability
Upstream bugs: http://bugs.php.net/bug.php?id=53273 http://bugs.php.net/bug.php?id=49354
Upstream patch: http://svn.php.net/viewvc/?view=revision&revision=305214
References: http://www.mandriva.com/en/security/advisories?name=MDVSA-2010:225 http://www.securityfocus.com/bid/44727 http://secunia.com/advisories/42135
Other sources
The mbstrcut function in Libmbfl 1.1.0, as used in PHP 5.3.x through 5.3.3, allows context-dependent attackers to obtain potentially sensitive information via a large value of the third parameter (aka the length parameter).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 305214
Event History
Frequently Asked Questions
What is the severity of CVE-2010-4156?
CVE-2010-4156 has not been assigned a severity score but can potentially lead to information disclosure.
How do I fix CVE-2010-4156?
To fix CVE-2010-4156, upgrade Libmbfl to a version higher than 1.1.0.
Which versions are affected by CVE-2010-4156?
CVE-2010-4156 specifically affects Libmbfl version 1.1.0.
What kind of attack does CVE-2010-4156 allow?
CVE-2010-4156 allows context-dependent attackers to obtain potentially sensitive information.
Is CVE-2010-4156 related to PHP versions?
CVE-2010-4156 involves Libmbfl but is used in PHP versions 5.3.0 through 5.3.3, which are not vulnerable themselves.