Cross-site scripting in PHP - CVE-2009-4142

 

Cross-site scripting in PHP - CVE-2009-4142

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


Vulnerability identifier: #VU110314
CSH Severity: Medium
CVSS v4: []
CVE-ID: CVE-2009-4142
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data. The vulnerability allows remote attackers to conduct cross-site scripting (XSS) attacks by placing a crafted byte sequence before a special character.

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
Slackware Linux
php

How to mitigate CVE-2009-4142

Install update from vendor's website.

PHP - addressed in versions 4.10, 5.2.11
php - update to 5.2.12

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins