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…
Check your servers for CVE-2010-3870
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2010-3870 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 11.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.6% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2010-3870 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2010-3870RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2010-3870Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2010-3870
trivy image --scanners vuln IMAGE | grep CVE-2010-3870
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2010-19011 lists.fedoraproject.org · vendor advisory
- 42812 secunia.com · third party advisory
- HPSBOV02763 marc.info · vendor advisory
- RHSA-2011:0195 redhat.com · vendor advisory
- SUSE-SR:2010:023 lists.opensuse.org · vendor advisory
- http://bugs.php.net/bug.php?id=49687 bugs.php.net
- APPLE-SA-2011-03-21-1 lists.apple.com · vendor advisory
- USN-1042-1 ubuntu.com · vendor advisory
- RHSA-2010:0919 redhat.com · vendor advisory
- http://www.php.net/ChangeLog-5.php php.net
- 42410 secunia.com · third party advisory
- MDVSA-2010:224 mandriva.com · vendor advisory
- FEDORA-2010-18976 lists.fedoraproject.org · vendor advisory
- http://svn.php.net/viewvc?view=revision&revision=304959 svn.php.net
- http://support.apple.com/kb/HT4581 support.apple.com
Other references
- [oss-security] 20101102 Re: utf-8 security issue in php openwall.com · mailing list
- ADV-2011-0077 vupen.com · vdb entry
- [oss-security] 20101102 Re: utf-8 security issue in php openwall.com · mailing list
- [oss-security] 20101102 Re: utf-8 security issue in php openwall.com · mailing list
- 1024797 securitytracker.com · vdb entry
- http://www.blackhat.com/presentations/bh-usa-09/VELANAVA/BHUSA09-VelaNava-FavoriteXSS-SLIDES.pdf blackhat.com
- [oss-security] 20101102 Re: utf-8 security issue in php openwall.com · mailing list
- http://bugs.php.net/bug.php?id=48230 bugs.php.net
- ADV-2011-0021 vupen.com · vdb entry
- http://sirdarckcat.blogspot.com/2009/10/couple-of-unicode-issues-on-php-and.html sirdarckcat.blogspot.com
- [oss-security] 20101102 utf-8 security issue in php openwall.com · mailing list
- [oss-security] 20101103 Re: utf-8 security issue in php openwall.com · mailing list
6 more
- ADV-2011-0020 vupen.com · vdb entry
- [oss-security] 20101102 Re: utf-8 security issue in php openwall.com · mailing list
- 44605 securityfocus.com · vdb entry
- http://us2.php.net/manual/en/function.utf8-decode.php#83935 us2.php.net
- http://www.acunetix.com/blog/web-security-articles/security-risks-associated-with-utf8_decode/ acunetix.com
- ADV-2010-3081 vupen.com · vdb entry
Source: the record CVE-2010-3870 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse