CVE-2010-3870 json
The utf8_decode function in PHP before 5.3.4 does not properly handle non-shortest form UTF-8 encoding and ill-formed subsequences in UTF-8…
published 15y ago modified 4mo ago also EUVD-2010-3848
- cvss
- 6.8
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 11.3%
- EPSS 11.3% chance of exploitation in 30 days, percentile 96%
- public exploits
- 1
- Exploit-DB
Summary
The utf8_decode 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.
Patch / fix
- php php 5.2.14, 5.3.4
- php RHEL 6 5.3.2-6.el6_0.1
- php-gd RHEL 6 5.3.2-6.el6_0.1
- php-cli RHEL 6 5.3.2-6.el6_0.1
- php-dba RHEL 6 5.3.2-6.el6_0.1
- php-pdo RHEL 6 5.3.2-6.el6_0.1
- php-xml RHEL 6 5.3.2-6.el6_0.1
- php-zts RHEL 6 5.3.2-6.el6_0.1
- php-imap RHEL 6 5.3.2-6.el6_0.1
red hat advisories RHSA-2011:0195RHSA-2010:0919
Is CVE-2010-3870 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2010-3870 updated cvss 4.3
php: XSS mitigation bypass via utf8_decode()
-
Red Hat Enterprise Linux 5 php53affected: no fix available
-
Red Hat Enterprise Linux (v. 5 server) php 5.1.6-27.el5_5.3, php-gd 5.1.6-27.el5_5.3, php-cli 5.1.6-27.el5_5.3, php-dba 5.1.6-27.el5_5.3, php-pdo 5.1.6-27.el5_5.3, php-xml 5.1.6-27.el5_5.3, +12 more Red Hat Enterprise Linux AS version 4 php 4.3.9-3.31, php-gd 4.3.9-3.31, php-imap 4.3.9-3.31, php-ldap 4.3.9-3.31, php-odbc 4.3.9-3.31, php-pear 4.3.9-3.31, +7 morefixed: vendor fix RHSA-2010:0919
-
Red Hat Enterprise Linux Desktop Optional (v. 6) php 5.3.2-6.el6_0.1, php-gd 5.3.2-6.el6_0.1, php-cli 5.3.2-6.el6_0.1, php-dba 5.3.2-6.el6_0.1, php-pdo 5.3.2-6.el6_0.1, php-xml 5.3.2-6.el6_0.1, +19 morefixed: vendor fix RHSA-2011:0195
-
Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.31, php-gd 4.3.9-3.31, php-imap 4.3.9-3.31, php-ldap 4.3.9-3.31, php-odbc 4.3.9-3.31, php-pear 4.3.9-3.31, +7 more Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-27.el5_5.3, php-gd 5.1.6-27.el5_5.3, php-cli 5.1.6-27.el5_5.3, php-dba 5.1.6-27.el5_5.3, php-pdo 5.1.6-27.el5_5.3, php-xml 5.1.6-27.el5_5.3, +12 more Red Hat Enterprise Linux ES version 4 php 4.3.9-3.31, php-gd 4.3.9-3.31, php-imap 4.3.9-3.31, php-ldap 4.3.9-3.31, php-odbc 4.3.9-3.31, php-pear 4.3.9-3.31, +7 morefixed: vendor fix RHSA-2010:0919
-
Red Hat Enterprise Linux HPC Node Optional (v. 6) php 5.3.2-6.el6_0.1, php-gd 5.3.2-6.el6_0.1, php-cli 5.3.2-6.el6_0.1, php-dba 5.3.2-6.el6_0.1, php-pdo 5.3.2-6.el6_0.1, php-xml 5.3.2-6.el6_0.1, +19 more Red Hat Enterprise Linux Server (v. 6) php 5.3.2-6.el6_0.1, php-gd 5.3.2-6.el6_0.1, php-cli 5.3.2-6.el6_0.1, php-pdo 5.3.2-6.el6_0.1, php-xml 5.3.2-6.el6_0.1, php-ldap 5.3.2-6.el6_0.1, +6 more Red Hat Enterprise Linux Server Optional (v. 6) php 5.3.2-6.el6_0.1, php-dba 5.3.2-6.el6_0.1, php-zts 5.3.2-6.el6_0.1, php-imap 5.3.2-6.el6_0.1, php-intl 5.3.2-6.el6_0.1, php-snmp 5.3.2-6.el6_0.1, +8 more Red Hat Enterprise Linux Workstation (v. 6) php 5.3.2-6.el6_0.1, php-gd 5.3.2-6.el6_0.1, php-cli 5.3.2-6.el6_0.1, php-pdo 5.3.2-6.el6_0.1, php-xml 5.3.2-6.el6_0.1, php-ldap 5.3.2-6.el6_0.1, +6 more Red Hat Enterprise Linux Workstation Optional (v. 6) php 5.3.2-6.el6_0.1, php-dba 5.3.2-6.el6_0.1, php-zts 5.3.2-6.el6_0.1, php-imap 5.3.2-6.el6_0.1, php-intl 5.3.2-6.el6_0.1, php-snmp 5.3.2-6.el6_0.1, +8 morefixed: vendor fix RHSA-2011:0195
-
Red Hat Enterprise Linux WS version 4 php 4.3.9-3.31, php-gd 4.3.9-3.31, php-imap 4.3.9-3.31, php-ldap 4.3.9-3.31, php-odbc 4.3.9-3.31, php-pear 4.3.9-3.31, +7 morefixed: vendor fix RHSA-2010:0919
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-34950)
- Published
Exploit prediction
11.28% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-34950 PHP 5.3.2 - 'xml_utf8_decode()' UTF-8 Input Validation remote, 2009-05-11
- bugs.php.net http://bugs.php.net/bug.php?id=49687 referenced PoC, tagged "exploit" by a source, unverified
- blackhat.com http://www.blackhat.com/presentations/bh-usa-09/VELANAVA/BHUSA09-VelaNava-FavoriteXSS-SLIDES.pdf referenced PoC, tagged "exploit" by a source, unverified
- bugs.php.net http://bugs.php.net/bug.php?id=48230 referenced PoC, tagged "exploit" by a source, unverified
- sirdarckcat.blogspot.com http://sirdarckcat.blogspot.com/2009/10/couple-of-unicode-issues-on-php-and.html referenced PoC, tagged "exploit" by a source, unverified
- us2.php.net http://us2.php.net/manual/en/function.utf8-decode.php#83935 referenced PoC, tagged "exploit" by a source, unverified
- acunetix.com http://www.acunetix.com/blog/web-security-articles/security-risks-associated-with-utf8_decode/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
svn.php.net
/viewvc?view=revision&revision=304959
patch, vendor-advisory
-
bugs.php.net
/bug.php?id=49687
exploit, vendor-advisory
-
blackhat.com
/presentations/bh-usa-09/VELANAVA/BHUSA09-VelaNava-FavoriteXSS-SLIDES.pdf
exploit, third-party-advisory
-
bugs.php.net
/bug.php?id=48230
exploit, vendor-advisory
-
sirdarckcat.blogspot.com
/2009/10/couple-of-unicode-issues-on-php-and.html
exploit, third-party-advisory
-
us2.php.net
/manual/en/function.utf8-decode.php#83935
exploit, vendor-advisory
-
acunetix.com
/blog/web-security-articles/security-risks-associated-with-utf8_decode/
exploit, third-party-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2011-January/052836.html
vendor-advisory, mailing-list, third-party-advisory
-
marc.info
/?l=bugtraq&m=133469208622507&w=2
vendor-advisory, mailing-list, third-party-advisory
-
redhat.com
/support/errata/RHSA-2011-0195.html
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2010-12/msg00000.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.apple.com
/archives/security-announce/2011/Mar/msg00006.html
vendor-advisory, mailing-list, third-party-advisory
-
ubuntu.com
/usn/USN-1042-1
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2010-0919.html
vendor-advisory, third-party-advisory
-
mandriva.com
/en/security/advisories?name=MDVSA-2010:224
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2011-January/052845.html
vendor-advisory, mailing-list, third-party-advisory
-
php.net
/ChangeLog-5.php
vendor-advisory
-
openwall.com
/lists/oss-security/2010/11/02/11
mailing-list, third-party-advisory
-
vupen.com
/english/advisories/2011/0077
vdb-entry, third-party-advisory
-
secunia.com
/advisories/42812
third-party-advisory
-
openwall.com
/lists/oss-security/2010/11/02/2
mailing-list, third-party-advisory
-
openwall.com
/lists/oss-security/2010/11/02/4
mailing-list, third-party-advisory
-
securitytracker.com
/id?1024797
vdb-entry, third-party-advisory
-
openwall.com
/lists/oss-security/2010/11/02/6
mailing-list, third-party-advisory
-
vupen.com
/english/advisories/2011/0021
vdb-entry, third-party-advisory
-
openwall.com
/lists/oss-security/2010/11/02/1
mailing-list, third-party-advisory
-
secunia.com
/advisories/42410
third-party-advisory
-
openwall.com
/lists/oss-security/2010/11/03/1
mailing-list, third-party-advisory
-
vupen.com
/english/advisories/2011/0020
vdb-entry, third-party-advisory
-
openwall.com
/lists/oss-security/2010/11/02/8
mailing-list, third-party-advisory
-
securityfocus.com
/bid/44605
vdb-entry, third-party-advisory
-
vupen.com
/english/advisories/2010/3081
vdb-entry, third-party-advisory
-
support.apple.com
/kb/HT4581
third-party-advisory
Sources
- CVE List CVE-2010-3870
- NVD CVE-2010-3870
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.