Description
Double free vulnerability in the unserializer in PHP 4.4.5 and 4.4.6 allows context-dependent attackers to execute arbitrary code by overwriting variables pointing to (1) the GLOBALS array or (2) the session data in _SESSION. NOTE: this issue was introduced when attempting to patch CVE-2007-1701 (MOPB-31-2007).
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 4.0 | php4 | 6:4.4.4-8+etch2 | DSA-1282-1 |
| Debian 4.0 | php5 | 5.2.0-8+etch3 | DSA-1283-1 |
| Debian 3.1 | php4 | 4:4.3.10-20 | DSA-1282-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 4 | php +13 | 4.3.9-3.22.4 | RHSA-2007:0155 |
| RHEL 3 | php +6 | 4.3.2-40.ent | RHSA-2007:0155 |
| RHEL 2 | php +7 | 4.1.2-2.17 | RHSA-2007:0154 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhel Stronghold 4 | stronghold-php +8 | 4.1.2-15 | RHSA-2007:0163 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- PHP 4.4.5/4.4.6 - 'session_decode()' Double-Free (PoC) EDB-3586 · dos · Mar 27, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 5
- RHSA-2007:0163 Red Hat Security Advisory: php security update for Stronghold Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2007:0155 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2007:0154 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DSA-1282-1 php4 Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-1283-1 php5 Debian Security (DSA / DLA) · Mar 9, 2026
References
- ADV-2007-2732 vdb-entry
- 23121 vdb-entry
- DSA-1283 vendor-advisory
- RHSA-2007:0154 vendor-advisory
- 20070418 rPSA-2007-0073-1 php php-mysql php-pgsql mailing-list
- APPLE-SA-2007-07-31 vendor-advisory
- GLSA-200705-19 vendor-advisory
- 24941 third-party-advisory
- 25062 third-party-advisory
- oval:org.mitre.oval:def:10406 vdb-entry signature
- MDKSA-2007:087 vendor-advisory
- 24945 third-party-advisory
- DSA-1282 vendor-advisory
- https://issues.rpath.com/browse/RPL-1268
- http://docs.info.apple.com/article.html?artnum=306172
- php-deserializer-code-execution(33575) vdb-entry
- 24924 third-party-advisory
- RHSA-2007:0155 vendor-advisory
- 24910 third-party-advisory
- 25159 vdb-entry
- 25445 third-party-advisory
- http://www.php-security.org/MOPB/MOPB-32-2007.html
- RHSA-2007:0163 vendor-advisory
- 25025 third-party-advisory
- MDKSA-2007:088 vendor-advisory
- 26235 third-party-advisory