All vulnerabilities

Servers and applications

CVE-2004-0595

The strip_tags function in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, does not filter null (\0) characters within tag names when restricting input to allowed tags, which allows dangerous tags to be processed by web browsers such as Internet Explorer and Safari, which ignore null characters and facilitate the exploitation of cross-site scripting (XSS) vulnerabilities.

Severity
Medium 6.8
Published
27 Jul 2004
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
45% in the next 30 daysHigher than 98% of CVEs. EPSS by FIRST, 12 Nov 2026
Attack
Over the network · No login needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 5.0-rc3
  • Version 5.0-rc2
  • Version 5.0-rc1
  • Version 4.3.7
All 25 release lines
  • Version 4.0
  • Version 4.0.1
  • Version 4.0.2
  • Version 4.0.3
  • Version 4.0.4
  • Version 4.0.5
  • Version 4.0.6
  • Version 4.0.7
  • Version 4.1.0
  • Version 4.1.1
  • Version 4.1.2
  • Version 4.2.0
  • Version 4.2.1
  • Version 4.2.2
  • Version 4.2.3
  • Version 4.3.0
  • Version 4.3.1
  • Version 4.3.2
  • Version 4.3.3
  • Version 4.3.5
  • Version 4.3.6
  • Version 4.3.7
  • Version 5.0-rc1
  • Version 5.0-rc2
  • Version 5.0-rc3

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2004-0595
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2004-0595