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)...
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.
Exploit likelihood
What each source reports
NVD Score used
6.8
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.
- Record
CVE-2004-0595- CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2004-0595- Updated
- 2026-11-02
EUVDEUVD-2004-0594 No score
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.
- Record
EUVD-2004-0594- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-h8wj-59vf-r37g No score
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)...
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.
- Record
GHSA-h8wj-59vf-r37g- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php4Debian:3.0 From an advisory covering 2 CVEs |
before 4.1.2-7 | 4.1.2-7 |
php3Debian:3.0 From an advisory covering 2 CVEs |
before 3:3.0.18-23.1woody2, plus listed versions 3:3.0.18-23.1woody1 |
3:3.0.18-23.1woody2 |
phpRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::as From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
Show 24 moreShow less
| Package | Affected | Fixed |
|---|---|---|
phpRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::desktop From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
phpRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::es From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
phpRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-debuginfoRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-develRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-imapRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-ldapRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-mysqlRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-odbcRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
php-pgsqlRed Hat:enterprise_linux:3::ws From an advisory covering 2 CVEs |
before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | PHP 4.x/5.0 - 'Strip_Tags()' Function Bypass | 2004-07-14 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2004-0595 is a medium vulnerability (CVSS 6.8) in Php, published July 16, 2004. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 45.2%, the 98th percentile. No source names a fixed version.
References
distro.conectiva.com.br/atualizacoes?id=a&anuncio=000847
marc.info?l=bugtraq&m=108982983426031&w=2
debian.org/security/2005/dsa-669
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10619
redhat.com/support/errata/RHSA-2004-395.html
redhat.com/support/errata/RHSA-2004-405.html
Show 25 moreShow less
redhat.com/support/errata/RHSA-2004-392.html
debian.org/security/2004/dsa-531
novell.com/linux/security/advisories/2004_21_php4.html
mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068
exchange.xforce.ibmcloud.com/vulnerabilities/16692
redhat.com/support/errata/RHSA-2005-816.html
marc.info?l=bugtraq&m=109181600614477&w=2
marc.info?l=bugtraq&m=109051444105182&w=2
securityfocus.com/bid/10724
marc.info?l=bugtraq&m=108981780109154&w=2
gentoo.org/security/en/glsa/glsa-200407-13.xml
lists.grok.org.uk/pipermail/full-disclosure/2004-July/023909.html
nvd.nist.gov/vuln/detail/CVE-2004-0595
github.com/advisories/GHSA-h8wj-59vf-r37g
access.redhat.com/errata/RHSA-2004:392
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=127642
security.access.redhat.com/data/csaf/v2/advisories/2004/rhsa-2004_392.json
access.redhat.com/security/cve/CVE-2004-0594
bugzilla.redhat.com/show_bug.cgi?id=1617233
cve.org/CVERecord?id=CVE-2004-0594
nvd.nist.gov/vuln/detail/CVE-2004-0594
access.redhat.com/security/cve/CVE-2004-0595
bugzilla.redhat.com/show_bug.cgi?id=1617234
cve.org/CVERecord?id=CVE-2004-0595