CVE-2009-4142: XSS
The htmlspecialchars function in PHP before 5.2.12 does not properly handle (1) overlong UTF-8 sequences, (2) invalid ShiftJIS 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 Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2009-4142?
CVE-2009-4142 has been classified as a medium severity vulnerability that allows for cross-site scripting (XSS) attacks.
How do I fix CVE-2009-4142?
To fix CVE-2009-4142, upgrade PHP to version 5.2.12 or later, which addresses the issue with the htmlspecialchars function.
Which PHP versions are affected by CVE-2009-4142?
CVE-2009-4142 affects PHP versions prior to 5.2.12, including 4.x and early 5.x versions.
What kind of attacks can CVE-2009-4142 facilitate?
CVE-2009-4142 can facilitate cross-site scripting (XSS) attacks, allowing attackers to inject malicious scripts into web pages.
Is CVE-2009-4142 still a threat today?
While CVE-2009-4142 is an older vulnerability, systems running affected PHP versions remain at risk if not updated.