CVE-2009-4142

php: htmlspecialchars() insufficient checking of input for multi-byte encodings

Published Dec 21, 2009 CVSS 2.0 · 4.3 Medium EPSS 6.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-2001-1 New php5 packages fix multiple vulnerabilities
Ubuntu USN Ubuntu USN USN-882-1 PHP vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 7, 2024, 6:54 AM
Reserved
Dec 1, 2009, 12:00 AM
Status
Modified
Published
Dec 21, 2009, 4:30 PM
Modified
Jun 16, 2026, 11:13 PM
Severity
Moderate
Public date
Oct 6, 2009, 12:00 AM