CVEvulnerability
CVE-2009-4142
4.3 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2009-12-21
- Last modified
- 2026-06-16
- Assigner
- [email protected]
- CVSS 2.0 ([email protected])
- 4.3 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-79
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 configurations
• php php (<= 5.2.11)
• php php 1.0
• php php 2.0
• php php 2.0b10
• php php 3.0
• php php 3.0.1
• php php 3.0.2
• php php 3.0.3
• php php 3.0.4
• php php 3.0.5
• php php 3.0.6
• php php 3.0.7
• php php 3.0.8
• php php 3.0.9
• php php 3.0.10
• php php 3.0.11
• php php 3.0.12
• php php 3.0.13
• php php 3.0.14
• php php 3.0.15
• php php 3.0.16
• php php 3.0.17
• php php 3.0.18
• php php 4
• php php 4.0
• php php 4.0.0
• php php 4.0.1
• php php 4.0.2
• php php 4.0.3
• php php 4.0.4
• php php 4.0.5
• php php 4.0.6
• php php 4.0.7
• php php 4.1.0
• php php 4.1.1
• php php 4.1.2
• php php 4.2
• php php 4.2.0
• php php 4.2.1
• php php 4.2.2
• php php 4.2.3
• php php 4.3.0
• php php 4.3.1
• php php 4.3.2
• php php 4.3.3
• php php 4.3.4
• php php 4.3.5
• php php 4.3.6
• php php 4.3.7
• php php 4.3.8
• php php 4.3.9
• php php 4.3.10
• php php 4.3.11
• php php 4.4.0
• php php 4.4.1
• php php 4.4.2
• php php 4.4.3
• php php 4.4.4
• php php 4.4.5
• php php 4.4.6
… and 27 more
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- http://bugs.php.net/bug.php?id=49785 bugs.php.net
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html lists.apple.com
- http://marc.info/?l=bugtraq&m=127680701405735&w=2 marc.info
- http://secunia.com/advisories/37821 Vendor Advisory
- http://secunia.com/advisories/38648 secunia.com
- http://secunia.com/advisories/40262 secunia.com
- http://securitytracker.com/id?1023372 Exploit
- http://support.apple.com/kb/HT4077 support.apple.com
- http://www.debian.org/security/2010/dsa-2001 www.debian.org
- http://www.php.net/ChangeLog-5.php Patch
- http://www.php.net/releases/5_2_12.php www.php.net
- http://www.securityfocus.com/bid/37389 Exploit
- http://www.vupen.com/english/advisories/2009/3593 Vendor Advisory
- 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 oval.cisecurity.org
- http://bugs.php.net/bug.php?id=49785 bugs.php.net
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html lists.apple.com
- http://marc.info/?l=bugtraq&m=127680701405735&w=2 marc.info
- http://secunia.com/advisories/37821 Vendor Advisory
- http://secunia.com/advisories/38648 secunia.com
- http://secunia.com/advisories/40262 secunia.com
- http://securitytracker.com/id?1023372 Exploit
- http://support.apple.com/kb/HT4077 support.apple.com
- http://www.debian.org/security/2010/dsa-2001 www.debian.org
- http://www.php.net/ChangeLog-5.php Patch
- http://www.php.net/releases/5_2_12.php www.php.net
- http://www.securityfocus.com/bid/37389 Exploit
- http://www.vupen.com/english/advisories/2009/3593 Vendor Advisory
- 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 oval.cisecurity.org