The memory_limit functionality in PHP 4.x up to 4.3.7, and 5.x up to 5.0.0RC3, under…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Partial · Partial · Partial
- Fix status
- Fixed
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 18
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:openpkg:openpkg:2.0:*:*:*:*:*:*:* | 2.0 | Vulnerable | Openpkg |
| cpe:2.3:a:openpkg:openpkg:2.1:*:*:*:*:*:*:* | 2.1 | Vulnerable | Openpkg |
| cpe:2.3:h:avaya:converged_communications_server:2.0:*:*:*:*:*:*:* | 2.0 | Vulnerable | Avaya |
| cpe:2.3:o:debian:debian_linux:3.0:*:*:*:*:*:*:* | 3.0 | Vulnerable | Debian |
| cpe:2.3:o:hp:hp-ux:b.11.00:*:*:*:*:*:*:* | b.11.00 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:hp:hp-ux:b.11.11:*:*:*:*:*:*:* | b.11.11 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:hp:hp-ux:b.11.22:*:*:*:*:*:*:* | b.11.22 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:hp:hp-ux:b.11.23:*:*:*:*:*:*:* | b.11.23 | Vulnerable | Hewlett Packard Enterprise |
| cpe:2.3:o:trustix:secure_linux:1.5:*:*:*:*:*:*:* | 1.5 | Vulnerable | Trustix |
| cpe:2.3:o:trustix:secure_linux:2.0:*:*:*:*:*:*:* | 2.0 | Vulnerable | Trustix |
- cpe:2.3:a:openpkg:openpkg:2.0:*:*:*:*:*:*:* Versions 2.0 Vulnerable ·Openpkg
- cpe:2.3:a:openpkg:openpkg:2.1:*:*:*:*:*:*:* Versions 2.1 Vulnerable ·Openpkg
- cpe:2.3:h:avaya:converged_communications_server:2.0:*:*:*:*:*:*:* Versions 2.0 Vulnerable ·Avaya
- cpe:2.3:o:debian:debian_linux:3.0:*:*:*:*:*:*:* Versions 3.0 Vulnerable ·Debian
- cpe:2.3:o:hp:hp-ux:b.11.00:*:*:*:*:*:*:* Versions b.11.00 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:hp:hp-ux:b.11.11:*:*:*:*:*:*:* Versions b.11.11 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:hp:hp-ux:b.11.22:*:*:*:*:*:*:* Versions b.11.22 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:hp:hp-ux:b.11.23:*:*:*:*:*:*:* Versions b.11.23 Vulnerable ·Hewlett Packard Enterprise
- cpe:2.3:o:trustix:secure_linux:1.5:*:*:*:*:*:*:* Versions 1.5 Vulnerable ·Trustix
- cpe:2.3:o:trustix:secure_linux:2.0:*:*:*:*:*:*:* Versions 2.0 Vulnerable ·Trustix
Show 8 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:trustix:secure_linux:2.1:*:*:*:*:*:*:* | 2.1 | Vulnerable | Trustix |
| cpe:2.3:a:php:php:*:*:*:*:*:*:*:* | 4.0 to before 4.3.7 | Vulnerable | PHP |
| cpe:2.3:a:php:php:5.0.0:beta1:*:*:*:*:*:* | 5.0.0 beta1 | Vulnerable | PHP |
| cpe:2.3:a:php:php:5.0.0:beta2:*:*:*:*:*:* | 5.0.0 beta2 | Vulnerable | PHP |
| cpe:2.3:a:php:php:5.0.0:beta3:*:*:*:*:*:* | 5.0.0 beta3 | Vulnerable | PHP |
| cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:* | 5.0.0 beta4 | Vulnerable | PHP |
| cpe:2.3:a:php:php:5.0.0:rc1:*:*:*:*:*:* | 5.0.0 rc1 | Vulnerable | PHP |
| cpe:2.3:a:php:php:5.0.0:rc2:*:*:*:*:*:* | 5.0.0 rc2 | Vulnerable | PHP |
- cpe:2.3:o:trustix:secure_linux:2.1:*:*:*:*:*:*:* Versions 2.1 Vulnerable ·Trustix
- cpe:2.3:a:php:php:*:*:*:*:*:*:*:* Versions 4.0 to before 4.3.7 Vulnerable ·PHP
- cpe:2.3:a:php:php:5.0.0:beta1:*:*:*:*:*:* Versions 5.0.0 beta1 Vulnerable ·PHP
- cpe:2.3:a:php:php:5.0.0:beta2:*:*:*:*:*:* Versions 5.0.0 beta2 Vulnerable ·PHP
- cpe:2.3:a:php:php:5.0.0:beta3:*:*:*:*:*:* Versions 5.0.0 beta3 Vulnerable ·PHP
- cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:* Versions 5.0.0 beta4 Vulnerable ·PHP
- cpe:2.3:a:php:php:5.0.0:rc1:*:*:*:*:*:* Versions 5.0.0 rc1 Vulnerable ·PHP
- cpe:2.3:a:php:php:5.0.0:rc2:*:*:*:*:*:* Versions 5.0.0 rc2 Vulnerable ·PHP
Remediation
Red Hat 3 advisories
- RHSA-2004:405 Released 2004-07-23 · Red Hat rating Importantapache, mod_ssl, php security update for Stronghold
- Red Hat Stronghold 4
- RHSA-2004:392 Released 2004-07-19 · Red Hat rating Importantphp security update
- Red Hat Desktop version 3 php-4.3.2-11.1.ent, php-4.3.2-11.1.ent.i386, php-devel-4.3.2-11.1.ent +11
- Red Hat Enterprise Linux AS version 3 php-4.3.2-11.1.ent, php-4.3.2-11.1.ent.i386, php-4.3.2-11.1.ent.ia64 +25
- Red Hat Enterprise Linux ES version 3 php-4.3.2-11.1.ent, php-4.3.2-11.1.ent.i386, php-4.3.2-11.1.ent.ia64 +18
- Red Hat Enterprise Linux WS version 3 php-4.3.2-11.1.ent, php-4.3.2-11.1.ent.i386, php-4.3.2-11.1.ent.ia64 +18
- RHSA-2004:395 Released 2004-07-19 · Red Hat rating Importantphp security update
- Red Hat Enterprise Linux AS (Advanced Server) version 2.1
- Red Hat Enterprise Linux ES version 2.1
- Red Hat Enterprise Linux WS version 2.1
- Red Hat Linux Advanced Workstation 2.1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Desktop version 3 | Fixed | RHSA-2004:392 |
| Red Hat Enterprise Linux AS (Advanced Server) version 2.1 | Fixed | RHSA-2004:395 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2004:392 |
| Red Hat Enterprise Linux ES version 2.1 | Fixed | RHSA-2004:395 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2004:392 |
| Red Hat Enterprise Linux WS version 2.1 | Fixed | RHSA-2004:395 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2004:392 |
| Red Hat Linux Advanced Workstation 2.1 | Fixed | RHSA-2004:395 |
| Red Hat Stronghold 4 | Fixed | RHSA-2004:405 |
| Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1) | Fixed | RHSA-2005:816 |
Timeline
- 2026-10-02 Threatist record created from CVE-2004-0594
- 2026-10-03 Alias added: GHSA-jm2p-9h9p-vg22
- 2026-10-06 EPSS moved to the 99th percentile and above
References
Advisory 15
Sources
- CVE-2004-0594 · CVE Program
- CVE-2004-0594 · NVD
- FIRST EPSS
- GHSA-jm2p-9h9p-vg22 · GitHub Advisory Database · CC BY 4.0
- CVE-2004-0594 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences