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…
Noroxi assessment
Priority: Monitor (action score 36/100)
- Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 54.8% (FIRST EPSS); higher than 99% of all records.
- Special conditions such as timing or configuration are required.
- Fixed version: php3 (Debian:3.0) 3:3.0.18-23.1woody2; php4 (Debian:3.0) 4.1.2-7; php (Red Hat:enterprise_linux:3::as) 0:4.3.2-11.1.ent.
Low priority for now. Upgrade to php3 (Debian:3.0) 3:3.0.18-23.1woody2; php4 (Debian:3.0) 4.1.2-7; php (Red Hat:enterprise_linux:3::as) 0:4.3.2-11.1.ent or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jul 27, 2004
- Updated
- Jun 16, 2026
- EPSS
- 54.8% · 99th percentile
- CWE
- CWE-367
Report tools
Action score
36
Low priority for now.
- CVSS
- 20 / 40 · 5.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 16 / 30 · 54.8%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| hp | hp-ux | cpe:2.3:o:hp:hp-ux |
| openpkg | openpkg | cpe:2.3:a:openpkg:openpkg |
| avaya | converged communications server | cpe:2.3:h:avaya:converged_communications_server |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| trustix | secure linux | cpe:2.3:o:trustix:secure_linux |
| php | php | cpe:2.3:a:php:php |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php4.0 and later · before 4.3.7
- php php5.0.0
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:3.0 | php3 | before 3:3.0.18-23.1woody2 | 3:3.0.18-23.1woody2 |
| Debian:3.0 | php4 | before 4.1.2-7 | 4.1.2-7 |
| Red Hat:enterprise_linux:3::as | php | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
| Red Hat:enterprise_linux:3::as | php-debuginfo | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
| Red Hat:enterprise_linux:3::as | php-devel | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
| Red Hat:enterprise_linux:3::as | php-imap | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
| Red Hat:enterprise_linux:3::as | php-ldap | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
| Red Hat:enterprise_linux:3::as | php-mysql | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
| Red Hat:enterprise_linux:3::as | php-odbc | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
| Red Hat:enterprise_linux:3::as | php-pgsql | before 0:4.3.2-11.1.ent | 0:4.3.2-11.1.ent |
Same product
hp: all recordsOther highest-scoring records for the same primary product.
- CVE-2000-0573The lreply function in wu-ftpd 2.6.0 and earlier does not properly cleanse an untrusted format string, which allows remote attackers to…69This week
- CVE-2005-3277The LPD service in HP-UX 10.20 11.11 (11i) and earlier allows remote attackers to execute arbitrary code via shell metacharacters ("`" or…46Plan
- CVE-1999-0502A Unix account has a default, null, blank, or missing password.46Plan
Published before and after this one in the same product
- ← EarlierCVE-2003-1461Dec 31, 2003 · Buffer overflow in rwrite for HP-UX 11.0 could allow local users to execute arbitrary code via a long argument.28Monitor
- ← EarlierCVE-2004-1764Jan 14, 2004 · Buffer overflow in CDE libDtSvc on HP-UX B.11.00, B.11.04, B.11.11, and B.11.22 allows local users to gain root privileges via unknown…28Monitor
- Later →CVE-2004-0716Aug 6, 2004 · Buffer overflow in the DCE daemon (DCED) for the DCE endpoint mapper (epmap) on HP-UX 11 allows remote attackers to execute arbitrary code…44Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:php3 | 3:3.0.18-23.1woody2 · Debian:3.0 | Package registry (OSV) |
| debian:php4 | 4.1.2-7 · Debian:3.0 | Package registry (OSV) |
| red hat:php | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-debuginfo | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-devel | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-imap | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ldap | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-mysql | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-odbc | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-pgsql | 0:4.3.2-11.1.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | remote | 2004-11-27 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+123 d
- TodayNov 16, 2026+8147 d
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- High
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-367 · Time-of-check Time-of-use (TOCTOU) Race ConditionCVSS vector
AV:N/AC:H/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (18 more)Show less
- lists.grok.org.uk/pipermail/full-disclosure/2004-July/023908.html
- marc.info/?l=bugtraq&m=108981780109154&w=2
- marc.info/?l=bugtraq&m=108982983426031&w=2
- marc.info/?l=bugtraq&m=109051444105182&w=2
- marc.info/?l=bugtraq&m=109181600614477&w=2
- www.debian.org/security/2004/dsa-531
- www.debian.org/security/2005/dsa-669
- www.gentoo.org/security/en/glsa/glsa-200407-13.xml
- www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068
- www.novell.com/linux/security/advisories/2004_21_php4.html
- www.redhat.com/support/errata/RHSA-2004-392.html
- www.redhat.com/support/errata/RHSA-2004-395.html
- www.redhat.com/support/errata/RHSA-2004-405.html
- www.redhat.com/support/errata/RHSA-2005-816.html
- www.securityfocus.com/bid/10725
- www.trustix.org/errata/2004/0039/
- exchange.xforce.ibmcloud.com/vulnerabilities/16693
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896
Vendor advisories and official records. Exploit/PoC links are deliberately left out.