CVE-2010-3870: Input Validation

Published Nov 2, 2010
·
Updated

A flaw in how PHP handles decoding UTF8 sequences was reported [1], [2]. A number of attack scenarios are mentioned there that permit malformed UTF8 sequences to bypass intended XSS protections.

This issue has been assigned the name CVE-2010-3870 and was fixed in PHP 5.3 [3], although it looks as though parts of the issue were fixed in the 5.2.11 release.

[1] http://bugs.php.net/bug.php?id=49687 [2] http://sirdarckcat.blogspot.com/2009/10/couple-of-unicode-issues-on-php-and.html [3] http://svn.php.net/viewvc/?view=revision&revision=304959

Other sources

The utf8decode function in PHP before 5.3.4 does not properly handle non-shortest form UTF-8 encoding and ill-formed subsequences in UTF-8 data, which makes it easier for remote attackers to bypass cross-site scripting (XSS) and SQL injection protection mechanisms via a crafted string.

— MITRE

Affected Software

7 affected components
PHP PHP<5.2.14
PHP PHP>=5.3.0<5.3.4
Ubuntu=10.10
Ubuntu=9.10
Ubuntu=8.04
Ubuntu=10.04
Ubuntu=6.06

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.3.4

Event History

Nov 2, 2010
Data Sourced
via Red Hat·08:36 PM
DescriptionSeverityAffected Software
Nov 12, 2010
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Data Sourced
09:00 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·09:00 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 13, 2023
Data Sourced
04:27 AM
RemedySeverity

Frequently Asked Questions

1

What is the severity of CVE-2010-3870?

CVE-2010-3870 is classified as a medium severity vulnerability due to its potential to allow attackers to bypass security mechanisms.

2

How do I fix CVE-2010-3870?

To fix CVE-2010-3870, upgrade PHP to version 5.3.4 or later, which addresses the issues with the utf8_decode function.

3

What systems are affected by CVE-2010-3870?

CVE-2010-3870 affects PHP versions prior to 5.3.4, as well as various Ubuntu Linux versions like 6.06 to 10.10.

4

What type of attacks can exploit CVE-2010-3870?

CVE-2010-3870 can be exploited through crafted strings that facilitate bypassing cross-site scripting (XSS) and SQL injection protections.

5

Is CVE-2010-3870 still a concern for modern applications?

While CVE-2010-3870 is an older vulnerability, legacy systems running the affected PHP versions may still be at risk.

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