# What is CVE-2004-0595?

> CVE-2004-0595 is a medium-severity flaw (CVSS 6.8) in PHP, published on 27 July 2004. It is not on the list of flaws known to be exploited today. The latest forecast puts its chance of use in the next 30 days at 45%. If you run an affected version, plan in the vendor’s fix.

Canonical page: https://www.precursorintelligence.com/what-is/cve-2004-0595

## At a glance

- **Verdict:** Fix this soon. Not confirmed as exploited yet, but serious or likely enough that it should not wait for a quiet month.
- **Precursor Intelligence risk score:** 43 out of 100 (Medium); action: Plan remediation. Kept up to date as the evidence changes.
- **Severity:** Medium (CVSS 6.8 out of 10)
- **Known to be exploited:** No, not on the list of flaws known to be exploited today
- **Chance of use in the next 30 days:** 45% (latest exploit-likelihood forecast)
- **Published:** 27 July 2004
- **Record last updated:** 16 June 2026
- **Main product:** PHP
- **Affected products:** 8

## What is CVE-2004-0595? In plain terms

It can be attacked from anywhere on the internet without logging in. If it works, the attacker can read some data, change some data and slow it down.

### The official description

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.

### What kind of flaw is it?

- Unknown: Unknown

### How an attack on it works

- Where an attacker can be: Anywhere on the internet
- How hard it is to pull off: Some conditions needed
- Login needed first: No login needed
- What an attacker gets: Can read some data, change some data and slow it down

Severity vector: `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## Is CVE-2004-0595 being exploited? Not that we know of

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 45%. That can change at any time, which is why we keep watching.

Exploit likelihood over the last 7 days: 45%, 45%, 45%, 45%, 45%, 45%, 45%.

### Timeline

- 27 July 2004: Published
- 31 July 2025: Exploit likelihood fell
- 2 October 2025: Exploit likelihood jumped
- 16 June 2026: Record last updated

### How Precursor Intelligence ranks it

CVE-2004-0595 scores **43 out of 100 (Medium)**, with the action "Plan remediation".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: smaller factor
- Threat activity around it: smaller factor

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2004-0595?

The published record lists 8 products.

- [PHP](https://www.precursorintelligence.com/product/php/php) by [PHP](https://www.precursorintelligence.com/vendors/php) (Application): 4.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7, 4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.3.5, 4.3.6, 4.3.7, 5.0-rc1, 5.0-rc2, 5.0-rc3
- [Secure Linux](https://www.precursorintelligence.com/product/trustix/secure_linux) by [Trustix](https://www.precursorintelligence.com/vendors/trustix) (Operating system): 1.5, 2.0, 2.1
- [Fedora Core](https://www.precursorintelligence.com/product/redhat/fedora_core) by [Red Hat](https://www.precursorintelligence.com/vendors/redhat) (Operating system): core_1.0, core_2.0
- [S8300](https://www.precursorintelligence.com/product/avaya/s8300) by [Avaya](https://www.precursorintelligence.com/vendors/avaya) (Hardware): r2.0.0, r2.0.1
- [S8500](https://www.precursorintelligence.com/product/avaya/s8500) by [Avaya](https://www.precursorintelligence.com/vendors/avaya) (Hardware): r2.0.0, r2.0.1
- [S8700](https://www.precursorintelligence.com/product/avaya/s8700) by [Avaya](https://www.precursorintelligence.com/vendors/avaya) (Hardware): r2.0.0, r2.0.1
- [Converged Communications Server](https://www.precursorintelligence.com/product/avaya/converged_communications_server) by [Avaya](https://www.precursorintelligence.com/vendors/avaya) (Hardware): 2.0
- [Integrated Management](https://www.precursorintelligence.com/product/avaya/integrated_management) by [Avaya](https://www.precursorintelligence.com/vendors/avaya) (Application): all versions

## How do I fix CVE-2004-0595?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? Precursor Intelligence can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisories and patch notes first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Keep an eye on it.** Track the product and we tell you as soon as we spot this flaw on the list of exploited flaws, or a jump in its exploit likelihood.

### References

- [debian.org](http://www.debian.org/security/2004/dsa-531) (Patch, Vendor advisory)
- [securityfocus.com](http://www.securityfocus.com/bid/10724) (Exploit, Patch, Vendor advisory)
- [distro.conectiva.com.br](http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000847)
- [lists.grok.org.uk](http://lists.grok.org.uk/pipermail/full-disclosure/2004-July/023909.html)
- [marc.info](http://marc.info/?l=bugtraq&m=108981780109154&w=2)
- [marc.info](http://marc.info/?l=bugtraq&m=108982983426031&w=2)
- [marc.info](http://marc.info/?l=bugtraq&m=109051444105182&w=2)
- [marc.info](http://marc.info/?l=bugtraq&m=109181600614477&w=2)
- [debian.org](http://www.debian.org/security/2005/dsa-669)
- [gentoo.org](http://www.gentoo.org/security/en/glsa/glsa-200407-13.xml)
- [mandrakesecure.net](http://www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068)
- [novell.com](http://www.novell.com/linux/security/advisories/2004_21_php4.html)
- [redhat.com](http://www.redhat.com/support/errata/RHSA-2004-392.html)
- [redhat.com](http://www.redhat.com/support/errata/RHSA-2004-395.html)
- [redhat.com](http://www.redhat.com/support/errata/RHSA-2004-405.html)
- [redhat.com](http://www.redhat.com/support/errata/RHSA-2005-816.html)
- [exchange.xforce.ibmcloud.com](https://exchange.xforce.ibmcloud.com/vulnerabilities/16692)
- [oval.cisecurity.org](https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10619)

## Questions

### What is CVE-2004-0595?

CVE-2004-0595 is a medium-severity flaw in PHP, published on 27 July 2004. It can be attacked from anywhere on the internet without logging in. If it works, the attacker can read some data, change some data and slow it down.

### How serious is CVE-2004-0595?

It scores 6.8 out of 10 on the CVSS severity scale, which is medium. Our risk score for CVE-2004-0595 is 43 out of 100, which is Medium. Its action is "Plan remediation". Not confirmed as exploited yet, but serious or likely enough that it should not wait for a quiet month.

### Is CVE-2004-0595 being exploited?

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 45%. That can change at any time, which is why we keep watching.

### Which versions does CVE-2004-0595 affect?

For PHP: 4.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5 and 19 more. The record lists 8 products in all, each with its versions, under "Who is affected" on this page.

### How do I fix CVE-2004-0595?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet.

## Does CVE-2004-0595 affect you?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

