Cross-site scripting in PHP - CVE-2008-5814

 

Cross-site scripting in PHP - CVE-2008-5814

Published: October 30, 2018 / Updated: June 8, 2025


Vulnerability identifier: #VU110330
CSH Severity: Low
CVSS v4: []
CVE-ID: CVE-2008-5814
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

Vulnerability allows a remote attacker to perform Cross-site scripting attacks.

An input validation error exists in PHP, possibly 5.2.7 and earlier, when display_errors is enabled,. A remote authenticated attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in victim's browser in security context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

PHP
Ubuntu
php5-cli (Ubuntu package)
php5-cgi (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)

How to mitigate CVE-2008-5814

Install update from vendor's website.

PHP - addressed in versions 4.10, 5.2.7
php5-cli (Ubuntu package) - update to 5.2.6.dfsg.1-3ubuntu4.1
php5-cgi (Ubuntu package) - update to 5.2.6.dfsg.1-3ubuntu4.1
libapache2-mod-php5 (Ubuntu package) - update to 5.2.6.dfsg.1-3ubuntu4.1

External References

Related Security Bulletins