Description
PHP before 5.1.3-RC1 might allow remote attackers to obtain portions of memory via crafted binary data sent to a script that processes user input in the html_entity_decode function and sends the encoded results back to the client, aka a "binary safety" issue. NOTE: this issue has been referred to as a "memory leak," but it is an information leak that discloses memory contents.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | php +13 | 4.3.9-3.12 | RHSA-2006:0276 |
| RHEL 3 | php +6 | 4.3.2-30.ent | RHSA-2006:0276 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | php7 | 7.4.24-1.1 | openSUSE-SU-2024:11167-1 |
| openSUSE Tumbleweed | php8 | 8.0.11-1.1 | openSUSE-SU-2024:11169-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP 4.x/5.x - 'Html_Entity_Decode()' Information Disclosure EDB-27508 · remote · Mar 29, 2006 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- RHSA-2006:0276 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- openSUSE-SU-2024:11167-1 php7-7.4.24-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- MDKSA-2006:063 vendor-advisory
- oval:org.mitre.oval:def:11084 vdb-entry signature
- ADV-2006-4750 vdb-entry
- 20060328 Critical PHP bug - act ASAP if you are running web with sensitive data mailing-list
- 19499 third-party-advisory
- 17296 vdb-entry
- 20210 third-party-advisory
- http://docs.info.apple.com/article.html?artnum=304829
- http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/html.c?r1=1.112&r2=1.113
- RHSA-2006:0276 vendor-advisory
- GLSA-200605-08 vendor-advisory
- 19570 third-party-advisory
- http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/html.c?view=log
- php-htmlentitydecode-information-disclosure(25508) vdb-entry
- 19383 third-party-advisory
- USN-320-1 vendor-advisory
- 23155 third-party-advisory
- 19979 third-party-advisory
- 20951 third-party-advisory
- 21125 third-party-advisory
- http://support.avaya.com/elmodocs2/security/ASA-2006-129.htm
- 20060328 Re: [Full-disclosure] Critical PHP bug - act ASAP if you are running web with sensitive data mailing-list
- 19832 third-party-advisory
- APPLE-SA-2006-11-28 vendor-advisory
- TA06-333A third-party-advisory
- http://bugs.gentoo.org/show_bug.cgi?id=127939
- 20052 third-party-advisory
- 2006-0020 vendor-advisory
- ADV-2006-2685 vdb-entry
- SUSE-SA:2006:024 vendor-advisory
- ADV-2006-1149 vdb-entry