| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 3.9 | $0-$5k | 0.00 |
Summary
A vulnerability classified as problematic was found in PHP. Affected is the function htmlspecialchars. Executing a manipulation can lead to cross site scripting.
This vulnerability is handled as CVE-2009-4142. The attack can be executed remotely. Additionally, an exploit exists.
Upgrading the affected component is advised.
Details
A vulnerability was found in PHP (Programming Language Software). It has been declared as problematic. This vulnerability affects the function htmlspecialchars. The manipulation with an unknown input leads to a cross site scripting vulnerability. The CWE definition for the vulnerability is CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. As an impact it is known to affect integrity. CVE summarizes:
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.
The weakness was released 12/21/2009 (Website). The advisory is available at php.net. This vulnerability was named CVE-2009-4142 since 12/01/2009. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Successful exploitation requires user interaction by the victim. Technical details and also a public exploit are known. This vulnerability is assigned to T1059.007 by the MITRE ATT&CK project.
It is possible to download the exploit at securityfocus.com. It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 44865 (Debian DSA-2001-1 : php5 - multiple vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks. The commercial vulnerability scanner Qualys is able to test this issue with plugin 118111 (HP-UX Running Apache with PHP Remote Denial of Service Vulnerability (HPSBUX02543)).
Upgrading to version 5.1.0 eliminates this vulnerability.
The vulnerability is also documented in the databases at X-Force (54915), Exploit-DB (33414), Tenable (44865), SecurityFocus (BID 37389†) and Secunia (SA37821†). Entries connected to this vulnerability are available at VDB-3693, VDB-3697, VDB-3695 and VDB-3696. If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Name
Version
- 0.0.1
- 0.1
- 0.1.1
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: 🔍
CVSSv3
VulDB Meta Base Score: 4.3VulDB Meta Temp Score: 3.9
VulDB Base Score: 4.3
VulDB Temp Score: 3.9
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Cross site scriptingCWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 44865
Nessus Name: Debian DSA-2001-1 : php5 - multiple vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍
OpenVAS ID: 66779
OpenVAS Name: Slackware Advisory SSA:2010-024-02 php
OpenVAS File: 🔍
OpenVAS Family: 🔍
Qualys ID: 🔍
Qualys Name: 🔍
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: PHP 5.1.0
Timeline
12/01/2009 🔍12/17/2009 🔍
12/17/2009 🔍
12/17/2009 🔍
12/18/2009 🔍
12/21/2009 🔍
12/21/2009 🔍
12/21/2009 🔍
02/24/2010 🔍
03/18/2015 🔍
02/01/2025 🔍
Sources
Product: php.orgAdvisory: php.net
Status: Confirmed
Confirmation: 🔍
CVE: CVE-2009-4142 (🔍)
GCVE (CVE): GCVE-0-2009-4142
GCVE (VulDB): GCVE-100-51226
OVAL: 🔍
X-Force: 54915
SecurityFocus: 37389 - PHP 'htmlspecialcharacters()' Malformed Multibyte Character Cross Site Scripting Vulnerability
Secunia: 37821 - PHP Multiple Vulnerabilities, Moderately Critical
SecurityTracker: 1023372 - PHP Input Validation Flaw in htmlspecialchars() Permits Cross-Site Scripting Attacks
Vulnerability Center: 24410 - PHP < 5.2.12 htmlspecialchars Function Remote Cross-Site Scripting (XSS) Vulnerability, Medium
Vupen: ADV-2009-3593
scip Labs: https://www.scip.ch/en/?labs.20161013
See also: 🔍
Entry
Created: 03/18/2015 15:15Updated: 02/01/2025 22:18
Changes: 03/18/2015 15:15 (66), 02/18/2017 09:38 (20), 08/30/2021 08:46 (3), 02/01/2025 22:18 (16)
Complete: 🔍
Cache ID: 216:149:103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.