CVE-2010-3870

PHP < 5.2.14 - Cross-Site Scripting and SQL Injection Protection Bypass via utf8_decode

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2010-3870. PoCs published by [email protected].

AI-analyzed exploit summary This code demonstrates a vulnerability in PHP versions prior to 5.3.4 where insufficient input sanitization can lead to bypassing input-validation mechanisms. It uses a specific UTF-8 sequence to illustrate the issue but does not include an actual exploit payload.

Description

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.

Exploits (1)

exploitdb WRITEUP VERIFIED
by [email protected] · phpremotephp
https://www.exploit-db.com/exploits/34950

This code demonstrates a vulnerability in PHP versions prior to 5.3.4 where insufficient input sanitization can lead to bypassing input-validation mechanisms. It uses a specific UTF-8 sequence to illustrate the issue but does not include an actual exploit payload.

Classification
Writeup 90%
Attack Type
Other
Complexity
Trivial
Reliability
Theoretical
Target: PHP < 5.3.4
No auth needed
Prerequisites: PHP version prior to 5.3.4
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (33)

Core 33
Core References
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2010/11/02/11
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2011/0077
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052836.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/42812
Mailing List, Third Party Advisory vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=133469208622507&w=2
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2010/11/02/2
Third Party Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2011-0195.html
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2010/11/02/4
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1024797
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2010-12/msg00000.html
Exploit, Vendor Advisory x_refsource_confirm
http://bugs.php.net/bug.php?id=49687
Mailing List, Third Party Advisory vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
Third Party Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-1042-1
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2010/11/02/6
Third Party Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2010-0919.html
Exploit, Vendor Advisory x_refsource_misc
http://bugs.php.net/bug.php?id=48230
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2011/0021
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-5.php
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2010/11/02/1
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/42410
Third Party Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/en/security/advisories?name=MDVSA-2010:224
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052845.html
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2010/11/03/1
Patch, Vendor Advisory x_refsource_confirm
http://svn.php.net/viewvc?view=revision&revision=304959
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2011/0020
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2010/11/02/8
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/44605
Exploit, Vendor Advisory x_refsource_misc
http://us2.php.net/manual/en/function.utf8-decode.php#83935
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2010/3081
Third Party Advisory x_refsource_confirm
http://support.apple.com/kb/HT4581

Scores

EPSS 0.1128
EPSS Percentile 95.4%

Details

CWE
CWE-20
Status published
Products (6)
canonical/ubuntu_linux 6.06
canonical/ubuntu_linux 8.04
canonical/ubuntu_linux 9.10
canonical/ubuntu_linux 10.04
canonical/ubuntu_linux 10.10
php/php < 5.2.14
Published Nov 12, 2010
Tracked Since Feb 18, 2026