4.3med
CVE-2009-41422 exploits
The htmlspecialchars function in PHP before 5.2.12 does not properly handle (1) overlong UTF-8 sequences, (2) invalid Shift_JIS sequences,…
Published 16 y ago · modified 4 mo ago · JSON
CVSS
4.3
v2.0 · NVD
CISA KEV
No
not known exploited
EPSS
6.5%
percentile 94%
Public exploits
2
Exploit-DB
Summary
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.
Exploit prediction (EPSS)
6.50% probability of exploitation in the next 30 days, higher than 94% of all scored CVEs.
Exploits and detections
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
- Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
- PHP (RSS, critical only)
References
- securityfocus.com /bid/37389 · vdb-entry, x_refsource_BID, x_transferred
- php.net /releases/5_2_12.php · x_refsource_CONFIRM, x_transferred
- bugs.php.net /bug.php?id=49785 · x_refsource_CONFIRM, x_transferred
- secunia.com /advisories/40262 · third-party-advisory, x_refsource_SECUNIA, x_transferred
- marc.info /?l=bugtraq&m=127680701405735&w=2 · vendor-advisory, x_refsource_HP, x_transferred
- securitytracker.com /id?1023372 · vdb-entry, x_refsource_SECTRACK, x_transferred
- secunia.com /advisories/37821 · third-party-advisory, x_refsource_SECUNIA, x_transferred
- secunia.com /advisories/38648 · third-party-advisory, x_refsource_SECUNIA, x_transferred
- lists.apple.com /archives/security-announce/2010//Mar/msg00001.html · vendor-advisory, x_refsource_APPLE, x_transferred
- php.net /ChangeLog-5.php · x_refsource_CONFIRM, x_transferred
- oval.cisecurity.org /repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A7085 · vdb-entry, signature, x_refsource_OVAL, x_transferred
- oval.cisecurity.org /repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10005 · vdb-entry, signature, x_refsource_OVAL, x_transferred
- support.apple.com /kb/HT4077 · x_refsource_CONFIRM, x_transferred
- vupen.com /english/advisories/2009/3593 · vdb-entry, x_refsource_VUPEN, x_transferred
- debian.org /security/2010/dsa-2001 · vendor-advisory, x_refsource_DEBIAN, x_transferred
Sources
- CVE List: CVE-2009-4142
- NVD: CVE-2009-4142
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.