CVE-2009-4142 Details
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.
View at NVD
Exploit prediction scoring system (EPSS) score for CVE-2009-4142
EPSS (Exploit Prediction Scoring System): EPSS predicts the likelihood that a vulnerability will be exploited in the wild. A higher percentage means a greater chance of an exploit occurring. The EPSS model produces a probability score between 0 and 1 (0 and 100%).
6.5 Probability of exploitation activity being observed over the next 30 days (93rd percentile)
CVSS score for CVE-2009-4142
CVSS (Common Vulnerability Scoring System): An open framework owned and managed by FIRST.Org, Inc. that assigns a numerical score from 0 to 10 to software vulnerabilities to indicate their severity.
4.3 Medium
Products affected by CVE-2009-4142

CVE-2009-4142 Global Footprint

Top 10 Identified Countries

Country Observations Percentage
US 62,532 21.48%
FR 45,704 15.70%
DE 39,091 13.43%
KR 23,333 8.02%
TW 20,358 6.99%
JP 19,284 6.62%
IT 9,723 3.34%
RU 6,794 2.33%
CA 6,569 2.26%
NL 5,083 1.75%

Is CVE-2009-4142 part of your extended attack surface? Bitsight helps security leaders rapidly identify exposure and detect threats in order to prioritize, communicate, and mitigate risk.

View interactive product tours

CVE-2009-4142 Industry Footprint

Top 10 Identified Industries

*Service provider organizations (typically Technology and Telecommunications) are disproportionally represented in the results given their upstream ownership of end-user infrastructure. See our FAQs.

Industry* Observations Percentage
Telecommunications 123,313 62.86%
Technology 66,168 33.73%
Education 1,219 0.62%
Real Estate 1,057 0.54%
Utilities 931 0.47%
Media/Entertainment 837 0.43%
Business Services 584 0.30%
Government/Politics 539 0.27%
Consumer Goods 391 0.20%
Retail 243 0.12%

Bitsight, the leading provider in Cyber Risk Management, introduced the next-generation internet scanner Bitsight Groma in May 2024. This technology continuously scans the entire internet to discover assets, collect asset attribution evidence, and identify an ever-growing set of security observations, such as vulnerabilities and misconfigurations. Groma’s scanning activities presently encompass:


  • 40 million-plus monitored organizations
  • 250 million-plus host names
  • 4 billion-plus routable IPv4 and IPv6 addresses

Greynoise’s recent study testifies the speed of Bitsight Groma.

Bitsight data discovery
Governance charcoal background

Bitsight TRACE team investigates security incidents and identifies vulnerabilities and threats.

View latest security research 

See what you’re up against across the expanding attack surface. Prioritize what matters most. And mitigate where you’re most vulnerable.

External Attack Surface Management