htmlspecialchars in PHP before 5.2.12 mishandles certain character sequences
Multiple products
At a glance
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 description · CVE List / CNA
System impact
CVSS summary v2.0
- Published:
- Updated:
- EPSS:
- 6.497%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Related CWE
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:php | php | Affected versions:≤ 5.2.11Show full version range for php1.02.02.0b103.03.0.13.0.103.0.113.0.123.0.133.0.143.0.153.0.163.0.173.0.183.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.944.04.0.04.0.14.0.24.0.34.0.44.0.54.0.64.0.74.1.04.1.14.1.24.24.2.04.2.14.2.24.2.34.3.04.3.14.3.104.3.114.3.24.3.34.3.44.3.54.3.64.3.74.3.84.3.94.4.04.4.14.4.24.4.34.4.44.4.54.4.64.4.74.4.84.4.955.05.0.05.0.15.0.25.0.35.0.45.0.55.1.05.1.15.1.35.1.45.1.55.1.65.2.05.2.15.2.105.2.25.2.35.2.45.2.55.2.65.2.85.2.9 |
| Vendor:oraclelinux | phpEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-bcmathEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-cliEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-commonEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-dbaEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-develEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-gdEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-imapEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
| Vendor:oraclelinux | php-ldapEnvironments (1)
| Affected versions: < 0:5.1.6-24.el5_4.5 |
1–10 of 129 · Page 1 of 13
CVSS scores and metrics4
[email protected] · NVD (Primary)Primary4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:Nnvd · Wazuh CTI (cna)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:Noraclelinux · Wazuh CTI (adp)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:Nredhat · Wazuh CTI (adp)4.3 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- None
- Integrity
- Partial
- Availability
- None
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:N/I:P/A:NCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories25
- CVE List / CNA
- NVD
- Wazuh CTI
- FIRST EPSS
- oval.cisecurity.org
- securitytracker.com
- lists.apple.com
- securityfocus.com
- debian.org
- oval.cisecurity.org
- marc.info
- secunia.com
- secunia.com
- php.net
- support.apple.com
- vupen.com
- bugs.php.net
- php.net
- secunia.com
- SUSE-SR:2010:005
- SUSE CVE-2009-4142
- access.redhat.com
- linux.oracle.com
- access.redhat.com
- Mitre CVE-2009-4142
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences