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 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
Fixed builds are available from Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-bcmath | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-cli | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-common | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-dba | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-devel | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-gd | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-imap | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-ldap | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-mbstring | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-mysql | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-ncurses | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-odbc | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-pdo | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-pgsql | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-snmp | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-soap | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-xml | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 5 | php-xmlrpc | Fixed | 0:5.1.6-7.el5 | RHSA-2007:0082 |
| Red Hat Enterprise Linux 4 | php | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-devel | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-domxml | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-gd | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-imap | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-ldap | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-mbstring | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-mysql | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-ncurses | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-odbc | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-pear | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-pgsql | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-snmp | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 4 | php-xmlrpc | Fixed | 0:4.3.9-3.22.3 | RHSA-2007:0076 |
| Red Hat Enterprise Linux 3 | php | Fixed | 0:4.3.2-39.ent | RHSA-2007:0076 |
| Red Hat Enterprise Linux 3 | php-devel | Fixed | 0:4.3.2-39.ent | RHSA-2007:0076 |
| Red Hat Enterprise Linux 3 | php-imap | Fixed | 0:4.3.2-39.ent | RHSA-2007:0076 |
| Red Hat Enterprise Linux 3 | php-ldap | Fixed | 0:4.3.2-39.ent | RHSA-2007:0076 |
| Red Hat Enterprise Linux 3 | php-mysql | Fixed | 0:4.3.2-39.ent | RHSA-2007:0076 |
| Red Hat Enterprise Linux 3 | php-odbc | Fixed | 0:4.3.2-39.ent | RHSA-2007:0076 |
| Red Hat Enterprise Linux 3 | php-pgsql | Fixed | 0:4.3.2-39.ent | RHSA-2007:0076 |
| Red Hat Enterprise Linux 2 | php | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
| Red Hat Enterprise Linux 2 | php-devel | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
| Red Hat Enterprise Linux 2 | php-imap | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
| Red Hat Enterprise Linux 2 | php-ldap | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
| Red Hat Enterprise Linux 2 | php-manual | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
| Red Hat Enterprise Linux 2 | php-mysql | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
| Red Hat Enterprise Linux 2 | php-odbc | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
| Red Hat Enterprise Linux 2 | php-pgsql | Fixed | 0:4.1.2-2.14 | RHSA-2007:0081 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.us.debian.org/security/2007/dsa-1264 (vendor-advisory)
- http://www.trustix.org/errata/2007/0009/ (vendor-advisory)
- http://www.openpkg.com/security/advisories/OpenPKG-SA-2007.010.html (vendor-advisory)
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c010… (vendor-advisory)
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c010… (vendor-advisory)
- http://www.ubuntu.com/usn/usn-424-2 (vendor-advisory)
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.