Description
The php_binary serialization handler in the session extension in PHP before 4.4.5, and 5.x before 5.2.1, allows context-dependent attackers to obtain sensitive information (memory contents) via a serialized variable entry with a large length value, which triggers a buffer over-read.
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 5.0 | php4 | 6:4.4.4-9+lenny1 | DTSA-40-1 |
| Debian 5.0 | php5 | 5.2.0-10+lenny1 | DTSA-39-1 |
| 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 5 | php +18 | 5.1.6-7.el5 | RHSA-2007:0082 |
| RHEL 4 | php +13 | 4.3.9-3.22.3 | RHSA-2007:0076 |
| RHEL 3 | php +6 | 4.3.2-39.ent | RHSA-2007:0076 |
| RHEL 2 | php +7 | 4.1.2-2.14 | RHSA-2007:0081 |
Show 2 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-12 | RHSA-2007:0089 |
| Red Hat Rhel Application Stack 1 | php +18 | 5.1.6-3.el4s1.5 | RHSA-2007:0088 |
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/5.2.1 - PHP_binary Session Deserialization Information Leak EDB-3413 · local · Mar 4, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 9
- RHSA-2007:0089 Red Hat Security Advisory: php security update for Stronghold Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2007:0088 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2007:0082 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2007:0076 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2007:0081 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- DTSA-40-1 php4 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- DTSA-39-1 php5 - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 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-1991 vdb-entry
- 25056 third-party-advisory
- http://www.php-security.org/MOPB/MOPB-10-2007.html
- DSA-1283 vendor-advisory
- SSRT071423 vendor-advisory
- 24606 third-party-advisory
- 24514 third-party-advisory
- HPSBTU02232 vendor-advisory
- GLSA-200703-21 vendor-advisory
- 22805 vdb-entry
- 25062 third-party-advisory
- ADV-2007-2374 vdb-entry
- SUSE-SA:2007:020 vendor-advisory
- 25423 third-party-advisory
- USN-455-1 vendor-advisory
- 3413 exploit
- DSA-1282 vendor-advisory
- oval:org.mitre.oval:def:10792 vdb-entry signature
- 25850 third-party-advisory
- 25057 third-party-advisory
- SUSE-SA:2007:032 vendor-advisory
- 25025 third-party-advisory