National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2009-4142 Detail

Current 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.

Source:  MITRE
View Analysis Description

Impact

CVSS v2.0 Severity and Metrics:

Base Score: 4.3 MEDIUM
Vector: (AV:N/AC:M/Au:N/C:N/I:P/A:N) (V2 legend)
Impact Subscore: 2.9
Exploitability Subscore: 8.6


Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (AU): None
Confidentiality (C): None
Integrity (I): Partial
Availability (A): None
Additional Information:
Victim must voluntarily interact with attack mechanism
Allows unauthorized modification

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource
http://bugs.php.net/bug.php?id=49785
http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
http://marc.info/?l=bugtraq&m=127680701405735&w=2
http://securitytracker.com/id?1023372 Exploit
http://support.apple.com/kb/HT4077
http://www.debian.org/security/2010/dsa-2001
http://www.php.net/ChangeLog-5.php Patch
http://www.php.net/releases/5_2_12.php
http://www.securityfocus.com/bid/37389 Exploit
http://www.vupen.com/english/advisories/2009/3593 Vendor Advisory
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10005
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7085

Technical Details

Vulnerability Type (View All)

  • Cross-Site Scripting (XSS) (CWE-79)

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:php:php:1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:2.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:2.0b10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.11:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.12:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.13:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.14:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.15:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.16:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.17:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:3.0.18:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.1:patch1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.1:patch2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.3:patch1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.4:patch1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.7:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.7:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.7:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.0.7:rc4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.2:*:dev:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.2.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.10:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.3.11:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.6:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.7:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.8:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:4.4.9:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc1:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc2:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc3:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.1:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.2:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.4:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.5:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
     Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*
     Show Matching CPE(s)

Showing 100 of 116 CPEs, view all CPEs here.

Change History

7 change records found - show changes

Quick Info

CVE Dictionary Entry:
CVE-2009-4142
NVD Published Date:
12/21/2009
NVD Last Modified:
10/30/2018