Skip to main content
← All vulnerabilities
CVE-2009-4142

The htmlspecialchars function in PHP before 5.2.12 does not properly handle (1) overlong UTF-8 sequences, (2) invalid Shift_JIS sequences, a

Published
Last modified
published
Not listed in CISA KEV
2 on Exploit-DB

Summary

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.

Timeline

  1. Public exploit on Exploit-DB

    EDB-33414, EDB-33415

  2. CVE published
  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

References 17

securityfocus.com

php.net

bugs.php.net

secunia.com

marc.info

securitytracker.com

lists.apple.com

oval.cisecurity.org

support.apple.com

vupen.com

debian.org

Exploit-DB