CVE-2009-4142
MEDIUM
4.3
CVSS 2.0
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.
Affected products and versions
- PHP — Up to and including 5.2.11
- PHP versions 1.0, 2.0, 2.0b10, 3.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.0.12, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 4, 4.0, 4.0.0, 4.0.1, 4.0.1patch1, 4.0.1patch2, 4.0.2, 4.0.3, 4.0.3patch1, 4.0.4, 4.0.4patch1, 4.0.5, 4.0.6, 4.0.7, 4.0.7rc1, 4.0.7rc2, 4.0.7rc3, 4.0.7rc4, 4.0beta1, 4.0beta2, 4.0beta3, 4.0beta4, 4.0beta_4_patch1, 4.0rc1, 4.0rc2, 4.1.0, 4.1.1, 4.1.2, 4.2, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7, 4.3.8, 4.3.9, 4.3.10, 4.3.11, 4.4.0, 4.4.1, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.4.6, 4.4.7, 4.4.8, 4.4.9, 5, 5.0.0, 5.0.0beta1, 5.0.0beta2, 5.0.0beta3, 5.0.0beta4, 5.0.0rc1, 5.0.0rc2, 5.0.0rc3, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.0.5, 5.0rc1, 5.0rc2, 5.0rc3, 5.1.0, 5.1.1, 5.1.3, 5.1.4, 5.1.5, 5.1.6, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5, 5.2.6, 5.2.8, 5.2.9, 5.2.10
References
- bugs.php.net http://bugs.php.net/bug.php?id=49785
- lists.apple.com http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- marc.info http://marc.info/?l=bugtraq&m=127680701405735&w=2
- secunia.com http://secunia.com/advisories/37821 Vendor Advisory
- secunia.com http://secunia.com/advisories/38648
- secunia.com http://secunia.com/advisories/40262
- securitytracker.com http://securitytracker.com/id?1023372 Exploit
- support.apple.com http://support.apple.com/kb/HT4077
- www.debian.org http://www.debian.org/security/2010/dsa-2001
- www.php.net http://www.php.net/ChangeLog-5.php Patch
- www.php.net http://www.php.net/releases/5_2_12.php
- www.securityfocus.com http://www.securityfocus.com/bid/37389 Exploit
- www.vupen.com http://www.vupen.com/english/advisories/2009/3593 Vendor Advisory
- oval.cisecurity.org https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10005
- oval.cisecurity.org https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7085
- nvd.nist.gov Official NVD record