CVE-2010-3870

medium
Published 2010-11-12 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.8

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.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-34950 remote php verified
root@80sec.com ยท 2009-05-11

PHP 5.3.2 - 'xml_utf8_decode()' UTF-8 Input Validation

Source code queued for fetch โ€” refresh in a moment.

OS impact

ubuntu Ubuntu Affected 5 releases
VersionStatusFixed in
10.10 Affected โ€”
10.04 Affected โ€”
9.10 Affected โ€”
8.04 Affected โ€”
6.06 Affected โ€”

Application impact

VendorProductVersionsFixed
php phpphp{"endExcluding":"5.2.14"}5.2.14

References

CWEs

CWE-20

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.