CVE-2009-4142
Last modified
CVE-2009-4142 is a vulnerability of currently unknown severity. 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.. EPSS estimates a 6.50% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Php | Php | <= 5.2.11 | — |
| Php | Php | 1.0 | — |
| Php | Php | 2.0 | — |
| Php | Php | 2.0b10 | — |
| Php | Php | 3.0 | — |
| Php | Php | 3.0.1 | — |
| Php | Php | 3.0.2 | — |
| Php | Php | 3.0.3 | — |
| Php | Php | 3.0.4 | — |
| Php | Php | 3.0.5 | — |
| Php | Php | 3.0.6 | — |
| Php | Php | 3.0.7 | — |
| Php | Php | 3.0.8 | — |
| Php | Php | 3.0.9 | — |
| Php | Php | 3.0.10 | — |
| Php | Php | 3.0.11 | — |
| Php | Php | 3.0.12 | — |
| Php | Php | 3.0.13 | — |
| Php | Php | 3.0.14 | — |
| Php | Php | 3.0.15 | — |
| Php | Php | 3.0.16 | — |
| Php | Php | 3.0.17 | — |
| Php | Php | 3.0.18 | — |
| Php | Php | 4 | — |
| Php | Php | 4.0 | — |
| Php | Php | 4.0.0 | — |
| Php | Php | 4.0.1 | — |
| Php | Php | 4.0.2 | — |
| Php | Php | 4.0.3 | — |
| Php | Php | 4.0.4 | — |
| Php | Php | 4.0.5 | — |
| Php | Php | 4.0.6 | — |
| Php | Php | 4.0.7 | — |
| Php | Php | 4.1.0 | — |
| Php | Php | 4.1.1 | — |
| Php | Php | 4.1.2 | — |
| Php | Php | 4.2 | — |
| Php | Php | 4.2.0 | — |
| Php | Php | 4.2.1 | — |
| Php | Php | 4.2.2 | — |
| Php | Php | 4.2.3 | — |
| Php | Php | 4.3.0 | — |
| Php | Php | 4.3.1 | — |
| Php | Php | 4.3.2 | — |
| Php | Php | 4.3.3 | — |
| Php | Php | 4.3.4 | — |
| Php | Php | 4.3.5 | — |
| Php | Php | 4.3.6 | — |
| Php | Php | 4.3.7 | — |
| Php | Php | 4.3.8 | — |
Showing 50 of 87 affected configurations. See NVD for the full list.
References
- http://secunia.com/advisories/37821Vendor Advisory
- http://www.vupen.com/english/advisories/2009/3593Vendor Advisory
- http://secunia.com/advisories/37821Vendor Advisory
- http://www.vupen.com/english/advisories/2009/3593Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2009-4142?
How severe is CVE-2009-4142?
How do I fix CVE-2009-4142?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2009
- CVE-2009-4136PostgreSQL 7.4.x before 7.4.27, 8.0.x before 8.0.23, 8.1.x b…
- CVE-2009-4137The loadContentFromCookie function in core/Cookie.php in Piw…
- CVE-2009-4138drivers/firewire/ohci.c in the Linux kernel before 2.6.32-gi…
- CVE-2009-4139A flaw was found in Spacewalk Java site packages. This cross…6.8
- CVE-2009-4140Unrestricted file upload vulnerability in ofc_upload_image.p…
- CVE-2009-4141Use-after-free vulnerability in the fasync_helper function i…
- CVE-2009-4143PHP before 5.2.12 does not properly handle session data, whi…
- CVE-2009-4144NetworkManager (NM) 0.7.2 does not ensure that the configure…
- CVE-2009-4145nm-connection-editor in NetworkManager (NM) 0.7.x exports co…
- CVE-2009-4146The _rtld function in the Run-Time Link-Editor (rtld) in lib…
- CVE-2009-4147The _rtld function in the Run-Time Link-Editor (rtld) in lib…
- CVE-2009-4148DAZ Studio 2.3.3.161, 2.3.3.163, and 3.0.1.135 allows remote…
Are you affected by CVE-2009-4142?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
