CVE-2009-4142

N/A Unknown
Published: December 21, 2009 Modified: April 23, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://bugs.php.net/bug.php?id=49785
Source: secalert@redhat.com
http://secunia.com/advisories/37821
Source: secalert@redhat.com
Vendor Advisory
http://secunia.com/advisories/38648
Source: secalert@redhat.com
http://secunia.com/advisories/40262
Source: secalert@redhat.com
http://securitytracker.com/id?1023372
Source: secalert@redhat.com
Exploit
http://support.apple.com/kb/HT4077
Source: secalert@redhat.com
http://www.php.net/ChangeLog-5.php
Source: secalert@redhat.com
Patch
http://www.php.net/releases/5_2_12.php
Source: secalert@redhat.com
http://www.securityfocus.com/bid/37389
Source: secalert@redhat.com
Exploit
http://www.vupen.com/english/advisories/2009/3593
Source: secalert@redhat.com
Vendor Advisory
http://bugs.php.net/bug.php?id=49785
Source: af854a3a-2127-422b-91ae-364da2661108
http://marc.info/?l=bugtraq&m=127680701405735&w=2
Source: af854a3a-2127-422b-91ae-364da2661108
http://secunia.com/advisories/37821
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory
http://secunia.com/advisories/38648
Source: af854a3a-2127-422b-91ae-364da2661108
http://secunia.com/advisories/40262
Source: af854a3a-2127-422b-91ae-364da2661108
http://securitytracker.com/id?1023372
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit
http://support.apple.com/kb/HT4077
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.debian.org/security/2010/dsa-2001
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.php.net/ChangeLog-5.php
Source: af854a3a-2127-422b-91ae-364da2661108
Patch
http://www.php.net/releases/5_2_12.php
Source: af854a3a-2127-422b-91ae-364da2661108
http://www.securityfocus.com/bid/37389
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit
http://www.vupen.com/english/advisories/2009/3593
Source: af854a3a-2127-422b-91ae-364da2661108
Vendor Advisory

30 reference(s) from NVD

Quick Stats

CVSS v3 Score
N/A / 10.0
EPSS (Exploit Probability)
16.9%
95th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

php