All vulnerabilities

Servers and applications

CVE-2004-0594

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.

Severity
Medium 5.1
Published
27 Jul 2004
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
4.3.7
Exploit chance
55% in the next 30 daysHigher than 99% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Time-of-check time-of-use race condition (CWE-367)
Attack
Over the network · Only under certain conditions · No login needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:N/AC:H/Au:N/C:P/I:P/A:P
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 5.0.0-rc2
  • Version 5.0.0-rc1
  • Version 5.0.0-beta4
  • Version 5.0.0-beta3
All 7 release lines
  • From 4.0 before 4.3.7
  • Version 5.0.0-beta1
  • Version 5.0.0-beta2
  • Version 5.0.0-beta3
  • Version 5.0.0-beta4
  • Version 5.0.0-rc1
  • Version 5.0.0-rc2

References

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