Description
The htmlspecialchars function in PHP before 5.2.12 does not properly handle (1) overlong UTF-8 sequences, (2) invalid Shift_JIS sequences, and (3) invalid EUC-JP sequences, which allows remote attackers to conduct cross-site scripting (XSS) attacks by placing a crafted byte sequence before a special character.
Remediation
References
Related Vulnerabilities
Apache Tomcat Other Vulnerability (CVE-2003-0042)
WordPress Plugin aoringo TAG upper Cross-Site Scripting (0.1.6)
WordPress Plugin Custom Content Type Manager Remote Code Execution (0.9.8.5)
OpenSSL Cryptographic Issues Vulnerability (CVE-2011-4108)
Zope Web Application Server Other Vulnerability (CVE-2012-5486)