All vulnerabilities

Servers and applications

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-8 data, which makes it easier for remote attackers to bypass cross-site scripting (XSS) and SQL injection protection mechanisms via a crafted string.

Severity
Medium 6.8
Published
12 Nov 2010
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
5.2.14, 5.3.4
Exploit chance
11% in the next 30 daysHigher than 96% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper input validation (CWE-20)
Attack
Over the network · No login needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Every version before 5.2.14
  • From 5.3.0 before 5.3.4

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2010-3870
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2010-3870