CVE-2009-4142

UnknownEPSS 6.50%

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

EPSS Probability
6.50%

92.9th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
PhpPhp<= 5.2.11
PhpPhp1.0
PhpPhp2.0
PhpPhp2.0b10
PhpPhp3.0
PhpPhp3.0.1
PhpPhp3.0.2
PhpPhp3.0.3
PhpPhp3.0.4
PhpPhp3.0.5
PhpPhp3.0.6
PhpPhp3.0.7
PhpPhp3.0.8
PhpPhp3.0.9
PhpPhp3.0.10
PhpPhp3.0.11
PhpPhp3.0.12
PhpPhp3.0.13
PhpPhp3.0.14
PhpPhp3.0.15
PhpPhp3.0.16
PhpPhp3.0.17
PhpPhp3.0.18
PhpPhp4
PhpPhp4.0
PhpPhp4.0.0
PhpPhp4.0.1
PhpPhp4.0.2
PhpPhp4.0.3
PhpPhp4.0.4
PhpPhp4.0.5
PhpPhp4.0.6
PhpPhp4.0.7
PhpPhp4.1.0
PhpPhp4.1.1
PhpPhp4.1.2
PhpPhp4.2
PhpPhp4.2.0
PhpPhp4.2.1
PhpPhp4.2.2
PhpPhp4.2.3
PhpPhp4.3.0
PhpPhp4.3.1
PhpPhp4.3.2
PhpPhp4.3.3
PhpPhp4.3.4
PhpPhp4.3.5
PhpPhp4.3.6
PhpPhp4.3.7
PhpPhp4.3.8

Showing 50 of 87 affected configurations. See NVD for the full list.

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2009-4142?
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.
How severe is CVE-2009-4142?
Severity scoring for CVE-2009-4142 is pending analysis. The EPSS model estimates a 6.50% probability of exploitation in the next 30 days.
How do I fix CVE-2009-4142?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2009-4142?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST