CVE-2010-3870: 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…
CVE-2010-3870 affects 20 listed versions of PHP in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
PHP
20 of 250 listed versions are affected. Fixed in 5.2.14. The newest release, 8.6.0, is not affected.
5.2.13 5.2.12 5.2.11 5.2.10 5.2.9 5.2.8 5.2.7 5.2.6 5.2.5 5.2.4 5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4
What it is
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.
AV:N/AC:M/Au:N/C:P/I:P/A:P (NVD)
Published by Red Hat on 12 November 2010. Last changed 16 June 2026.
Sources
Check one version you run: look CVE-2010-3870 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.