Skip to content
Vulnerability Intelligence

CVE-2004-0594

MediumPublic exploit

The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain conditions such as when register_globals is enabled, allows remote attackers to execute arbitrary code by triggering a memory_limit abort during execution of the zend_hash_init function…

Published Jul 13, 2004 · Updated Mar 9, 2026 · Also known as DEBIAN-CVE-2004-0594, DEBIAN-CVE-2004-0595, DSA-531, DSA-669-1

Key Facts

Patch immediately
  • CVE-2004-0594 is a medium-severity vulnerability (CVSS 5.1 v2) affecting Openpkg, PHP, Converged Communications Server (Avaya) and 5 more products.
  • It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
  • EPSS estimates a 55% probability of exploitation in the next 30 days.
  • Fixed versions are available, including PHP 0:4.3.2-11.1.ent, PHP 4.3.7, php3 3:3.0.18-23.1woody2.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

CVSS v2

5.1

AV:N/AC:H/Au:N/C:P/I:P/A:P

EPSS (30-day exploit likelihood)

55%

Higher than 99.0% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

Available

Proof-of-concept or weaponized module

Get the full CVE-2004-0594 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under certain conditions such as when register_globals is enabled, allows remote attackers to execute arbitrary code by triggering a memory_limit abort during execution of the zend_hash_init function and overwriting a HashTable destructor pointer before the initialization of key data structures is complete.

Affected Products

21 affected entries in total
ProductAffected versionsFixed in
OpenpkgOpenpkg2.0, 2.1n/a
PHPPHP5.0.0-beta1, 5.0.0-beta2, 5.0.0-beta3, 5.0.0-beta4, 5.0.0-rc1, 5.0.0-rc24.3.7
Converged Communications ServerAvaya2.0n/a
Debian LinuxDebian3.0n/a
Hp-UxHpb.11.00, b.11.11, b.11.22, b.11.23n/a
3 more affected products in the full CVE brief

Patched Releases

PHP

0:4.3.2-11.1.ent, 4.3.7

php3

3:3.0.18-23.1woody2

php4

4.1.2-7

Timeline

  1. Publicly disclosed

    Jul 13, 2004

  2. Last updated

    Mar 9, 2026

Weakness Type

  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

References

15 more references in the full CVE brief

FAQ

Common Questions.

Is CVE-2004-0594 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo