← Vulnerability feed

Vulnerability record · CVE-2005-3388 · published 1 November 2005

CVE-2005-3388: PHP phpinfo() cross-site scripting via crafted URL

Php · Php

PHP 4.x up to 4.4.0 and 5.x up to 5.0.5 contain a cross-site scripting flaw in the phpinfo function, reachable through a crafted URL using a stacked array assignment. An attacker can inject arbitrary script or HTML into the phpinfo output page, which matters because phpinfo pages are commonly exposed during debugging and misconfiguration.

4.3 CVSS 2.0 Medium EPSS 49% · top 1.2%
4.3CVSS 2.0 base score
49%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
64References
16 Jun 2026Last modified by NVD

Description

Cross-site scripting (XSS) vulnerability in the phpinfo function in PHP 4.x up to 4.4.0 and 5.x up to 5.0.5 allows remote attackers to inject arbitrary web script or HTML via a crafted URL with a "stacked array assignment."

AV:N/AC:M/Au:N/C:N/I:P/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

medium priorityThe flaw is a reflected XSS with only partial integrity impact and no confirmed in-the-wild exploitation, but the affected PHP versions are long obsolete and phpinfo exposure is common.

What it is

PHP 4.x up to 4.4.0 and 5.x up to 5.0.5 contain a cross-site scripting flaw in the phpinfo function, reachable through a crafted URL using a stacked array assignment. An attacker can inject arbitrary script or HTML into the phpinfo output page, which matters because phpinfo pages are commonly exposed during debugging and misconfiguration.

Impact

An attacker can execute script in the browser context of a victim viewing the phpinfo page, enabling session theft, credential capture or page defacement. The CVSS 2.0 vector shows partial integrity impact only, with no confidentiality or availability impact.

Attack surface

Reached remotely over the network via a crafted URL; the CVSS vector indicates no authentication (Au:N) and medium attack complexity (AC:M). The description does not state whether user interaction is required, though reflected XSS typically requires the victim to follow a link.

Exploitation

Not listed in CISA KEV and no ransomware associations are documented. EPSS is high (0.489 probability, 98.8th percentile), but reference tags only include Patch and Vendor Advisory, with no public exploit tag.

What to do

  • Upgrade PHP to a fixed release (4.4.1 or later for the 4.x line, and the corresponding fixed 5.x release) as indicated by the vendor patch reference.
  • Apply distribution vendor updates (Red Hat, Fedora Legacy, Gentoo, Mandriva, Novell, OpenPKG) where the packaged PHP cannot be upgraded directly.
  • Remove or restrict access to any phpinfo() pages exposed on production systems.
  • Deploy output encoding or a web application firewall rule to neutralize script injection in phpinfo responses until patching completes.

Detection

  • Search web server access logs for requests to phpinfo pages containing array-style or bracketed query parameters.
  • Inspect HTTP responses from phpinfo endpoints for reflected script or HTML from request parameters.
  • Alert on scanner or exploit traffic patterns targeting phpinfo URLs across the environment.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://itrc.hp.com/service/cki/docDisplay.do?docId=c00786522
http://rhn.redhat.com/errata/RHSA-2006-0549.html
http://secunia.com/advisories/17371 PatchVendor Advisory
http://secunia.com/advisories/17490
http://secunia.com/advisories/17510
http://secunia.com/advisories/17531
http://secunia.com/advisories/17557
http://secunia.com/advisories/17559
http://secunia.com/advisories/18198
http://secunia.com/advisories/18669
http://secunia.com/advisories/21252
http://secunia.com/advisories/22691
http://securityreason.com/securityalert/133
http://securitytracker.com/id?1015130
http://support.avaya.com/elmodocs2/security/ASA-2006-037.htm
http://www.fedoralegacy.org/updates/FC2/2005-11-28-FLSA_2005_166943__Updated_php_packages_fix_security_issues.html
http://www.gentoo.org/security/en/glsa/glsa-200511-08.xml
http://www.hardened-php.net/advisory_182005.77.html Vendor Advisory
http://www.mandriva.com/security/advisories?name=MDKSA-2005:213
http://www.novell.com/linux/security/advisories/2005_27_sr.html
http://www.openpkg.org/security/OpenPKG-SA-2005.027-php.html
http://www.php.net/release_4_4_1.php Patch
http://www.redhat.com/support/errata/RHSA-2005-831.html
http://www.redhat.com/support/errata/RHSA-2005-838.html
http://www.securityfocus.com/archive/1/415292
http://www.securityfocus.com/bid/15248 Patch
http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
http://www.vupen.com/english/advisories/2005/2254
http://www.vupen.com/english/advisories/2006/4320
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PIRZJHM6UDNWNHZ3PCMEZ2Y
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10542
https://www.ubuntu.com/usn/usn-232-1/
http://itrc.hp.com/service/cki/docDisplay.do?docId=c00786522
http://rhn.redhat.com/errata/RHSA-2006-0549.html
http://secunia.com/advisories/17371 PatchVendor Advisory
http://secunia.com/advisories/17490
http://secunia.com/advisories/17510
http://secunia.com/advisories/17531
http://secunia.com/advisories/17557
http://secunia.com/advisories/17559

Track CVE-2005-3388 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed10.0CVE-2015-0235glibc gethostbyname heap buffer overflow (GHOST)CVE-2015-0235 is a heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2 and other 2.x versions before 2.18. It is reach…EPSS 95%analysed10.0CVE-2012-2688Php vulnerabilityUnspecified vulnerability in the _php_stream_scandir function in the stream implementation in PHP before 5.3.15 and 5.4.x before 5.4.5 has unknown im…EPSS 10%10.0CVE-2012-2376Php memory buffer overflow vulnerabilityBuffer overflow in the com_print_typeinfo function in PHP 5.4.3 and earlier on Windows allows remote attackers to execute arbitrary code via crafted …EPSS 20%10.0CVE-2011-3268Php memory buffer overflow vulnerabilityBuffer overflow in the crypt function in PHP before 5.3.7 allows context-dependent attackers to have an unspecified impact via a long salt argument, …EPSS 5.7%10.0CVE-2009-4143Php vulnerabilityPHP before 5.2.12 does not properly handle session data, which has unspecified impact and attack vectors related to (1) interrupt corruption of the S…EPSS 2.9%

Source: NIST National Vulnerability Database (record CVE-2005-3388), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.