CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2009 · Php

CVE-2009-4142
Php vulnerability

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.

Affected products

Php. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Php products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.