Cross-site scripting in PHP - CVE-2010-3870

 

Cross-site scripting in PHP - CVE-2010-3870

Published: February 13, 2023 / Updated: June 8, 2025


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

Vulnerability details

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

The vulnerability exists due to insufficient sanitization of user-supplied data when processing data passed via a crafted string. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in 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
Gentoo Linux
dev-lang/php

How to mitigate CVE-2010-3870

Install update from vendor's website.

PHP - update to 5.3.4
dev-lang/php - update to 5.3.8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins