p PatchFirst

CVE-2009-4142

CVE-2009-4142

EPSS 6.5% · Public exploit

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • RHSA-2010:0040 · Red Hat Enterprise Linux 3 as, Red Hat Enterprise Linux 3 desktop, Red Hat Enterprise Linux 3 es, Red Hat Enterprise Linux 3 ws, Red Hat Enterprise Linux 4 as, Red Hat Enterprise Linux 4 desktop, Red Hat Enterprise Linux 4 es, Red Hat Enterprise Linux 4 ws, Red Hat Enterprise Linux 5 client workstation, Red Hat Enterprise Linux 5 server ·
  • DSA-2001-1 · Debian 5.0 ·

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

Original sources

Check your server →