peter bassill · operator
$ cve CVE-2009-4142 JSON

CVE-2009-4142 EXPLOIT

4.3
MEDIUM · CVSS 2.0 · EPSS 6.5% (pctl 94)

Patch early

A public exploit exists.

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.

Scoring

CVSS4.3 (MEDIUM, v2.0)
VectorAV:N/AC:M/Au:N/C:N/I:P/A:N
EPSS6.5% — more likely to be exploited than 94% of all CVEs
WeaknessCWE-79
On CISA KEVno
Public exploityes
Published2009-12-21
Last modified2026-06-16

Affected (1)

VendorProduct
phpphp

Public exploits

References

→ the Explorer  ·  watch your stack  ·  NVD