Description
Cross-site scripting (XSS) vulnerability in phpinfo (info.c) in PHP 5.1.2 and 4.4.2 allows remote attackers to inject arbitrary web script or HTML via long array variables, including (1) a large number of dimensions or (2) long values, which prevents HTML tags from being removed.
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.0/5.1 - PHPInfo Large Input Cross-Site Scripting EDB-27564 · remote · Apr 3, 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
- 675 third-party-advisory
- 19775 third-party-advisory
- 21252 third-party-advisory
- 24484 vdb-entry
- 20222 third-party-advisory
- 20210 third-party-advisory
- http://www.php.net/ChangeLog-4.php#4.4.3
- http://support.avaya.com/elmodocs2/security/ASA-2006-160.htm
- 17362 vdb-entry
- RHSA-2006:0276 vendor-advisory
- GLSA-200605-08 vendor-advisory
- http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/info.c?r1=1.260&r2=1.261
- ADV-2006-1290 vdb-entry
- USN-320-1 vendor-advisory
- RHSA-2006:0501 vendor-advisory
- 1015879 vdb-entry
- 20060408 phpinfo() Cross Site Scripting PHP 5.1.2 and 4.4.2 third-party-advisory
- 19979 third-party-advisory
- RHSA-2006:0549 vendor-advisory
- 20951 third-party-advisory
- 21125 third-party-advisory
- oval:org.mitre.oval:def:10997 vdb-entry signature
- http://support.avaya.com/elmodocs2/security/ASA-2006-129.htm
- 19599 third-party-advisory
- MDKSA-2006:074 vendor-advisory
- 19832 third-party-advisory
- http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/info.c
- 20052 third-party-advisory
- 21564 third-party-advisory
- php-phpinfo-long-array-xss(25702) vdb-entry
- ADV-2006-2685 vdb-entry
- SUSE-SA:2006:024 vendor-advisory
- [php-cvs] 20060330 cvs: php-src /ext/standard info.c mailing-list