CVE-2006-5465
Buffer overflow in PHP before 5.2.0 allows remote attackers to execute arbitrary code via crafted UTF-8 inputs to the (1) htmlentities…
Check your servers for CVE-2006-5465
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-2006-5465 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
Buffer overflow in PHP before 5.2.0 allows remote attackers to execute arbitrary code via crafted UTF-8 inputs to the (1) htmlentities or (2) htmlspecialchars functions.
Exploitation
EPSS 10.3%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 96.4% of all scored CVEs. Scores of 30 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-2006-5465 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2006-5465RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2006-5465Alpine
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-2006-5465
trivy image --scanners vuln IMAGE | grep CVE-2006-5465
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
47 of 48 references. The list leaves out addresses that are not web links and those after the first 300; all of them are in the record on cve.org.
Advisories
- 22881 secunia.com · third party advisory
- RHSA-2006:0731 redhat.com · vendor advisory
- 22759 secunia.com · third party advisory
- 24606 secunia.com · third party advisory
- http://docs.info.apple.com/article.html?artnum=304829 docs.info.apple.com
- TLSA-2006-38 turbolinux.com · vendor advisory
- DSA-1206 debian.org · vendor advisory
- 22693 secunia.com · third party advisory
- 23247 secunia.com · third party advisory
- 22653 secunia.com · third party advisory
- 22688 secunia.com · third party advisory
- 2006-0061 trustix.org · vendor advisory
22 more
- GLSA-200703-21 security.gentoo.org · vendor advisory
- 22713 secunia.com · third party advisory
- 22685 secunia.com · third party advisory
- 20070425 PHP HTML Entity Encoder Heap Overflow Vulnerability in Multiple Web-Based Management Interfaces cisco.com · vendor advisory
- http://issues.rpath.com/browse/RPL-761 issues.rpath.com
- SUSE-SA:2006:067 novell.com · vendor advisory
- 23155 secunia.com · third party advisory
- MDKSA-2006:196 mandriva.com · vendor advisory
- 25047 secunia.com · third party advisory
- 22779 secunia.com · third party advisory
- RHSA-2006:0730 redhat.com · vendor advisory
- USN-375-1 ubuntu.com · vendor advisory
- APPLE-SA-2006-11-28 lists.apple.com · vendor advisory
- 20070425 Cisco Applied Intelligence Response: Identifying and Mitigating Exploitation of the PHP HTML Entity Encoder… cisco.com · vendor advisory
- TA06-333A us-cert.gov · third party advisory
- OpenPKG-SA-2006.028 openpkg.com · vendor advisory
- 22929 secunia.com · third party advisory
- 22753 secunia.com · third party advisory
- http://support.avaya.com/elmodocs2/security/ASA-2006-245.htm support.avaya.com
- 23139 secunia.com · third party advisory
- RHSA-2006:0736 rhn.redhat.com · vendor advisory
- http://www.php.net/releases/5_2_0.php php.net
Other references
- 1017152 securitytracker.com · vdb entry
- ADV-2006-4750 vupen.com · vdb entry
- ADV-2006-4749 vupen.com · vdb entry
- 20061102 Advisory 13/2006: PHP HTML Entity Encoder Heap Overflow Vulnerability securityfocus.com · mailing list
- ADV-2007-1546 vupen.com · vdb entry
- 20061129 SYM06-023, Symantec NetBackup PureDisk: PHP update to Address Reported Security Vulnerability securityfocus.com · mailing list
- 20061109 rPSA-2006-0205-1 php php-mysql php-pgsql securityfocus.com · mailing list
- ADV-2006-4317 vupen.com · vdb entry
- http://www.hardened-php.net/advisory_132006.138.html hardened-php.net
- php-htmlentities-bo(29971) exchange.xforce.ibmcloud.com · vdb entry
- 1017296 securitytracker.com · vdb entry
- 20879 securityfocus.com · vdb entry
- oval:org.mitre.oval:def:10240 oval.cisecurity.org · vdb entry, signature
Source: the record CVE-2006-5465 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