Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2009-4142

4.3 · MEDIUM
Published Dec 21, 2009 php CWE-79 EPSS 6.50% (93th pctl)

Overview

CVE-2009-4142 is a medium-severity vulnerability affecting php php. It was published on December 21, 2009 and has a CVSS 2.0 base score of 4.3 (MEDIUM).

This vulnerability has a CVSS 2.0 base score of 4.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical 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

Check the references section for vendor advisories and patches from php. Update php to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
php php 0 Affected

Frequently Asked Questions

What is CVE-2009-4142?

CVE-2009-4142 is a medium-severity vulnerability affecting php php. It was published on December 21, 2009 and has a CVSS 2.0 base score of 4.3 (MEDIUM).

How severe is CVE-2009-4142?

This vulnerability has a CVSS 2.0 base score of 4.3, rated MEDIUM. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2009-4142?

Check the references section for vendor advisories and patches from php. Update php to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2009-4142?

CyberStrike's AI-powered security agents can automatically detect CVE-2009-4142 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.