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.
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
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
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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
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.