Skip to content
Fencer Vulns
medium 6.8

CVE-2007-1286 json

Integer overflow in PHP 4.4.4 and earlier allows remote context-dependent attackers to execute arbitrary code via a long string to the unse…

published 2007-03-06 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-1283

cvss
6.8
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
40.9%
EPSS 40.9% chance of exploitation in 30 days, percentile 98%
public exploits
4
Metasploit, Exploit-DB

Summary

Integer overflow in PHP 4.4.4 and earlier allows remote context-dependent attackers to execute arbitrary code via a long string to the unserialize function, which triggers the overflow in the ZVAL reference counter.

Patch / fix

  • php RHEL 3 4.3.2-40.ent
  • php RHEL 4 4.3.9-3.22.4
  • php-gd RHEL 4 4.3.9-3.22.4
  • php-imap RHEL 3 4.3.2-40.ent
  • php-imap RHEL 4 4.3.9-3.22.4
  • php-ldap RHEL 3 4.3.2-40.ent
  • php-ldap RHEL 4 4.3.9-3.22.4
  • php-odbc RHEL 3 4.3.2-40.ent

red hat advisories RHSA-2007:0155RHSA-2007:0163RHSA-2007:0154

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2007-1286 updated

security flaw

  • Red Hat Desktop version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.ent
    fixed: vendor fix RHSA-2007:0155
  • Red Hat Enterprise Linux AS (Advanced Server) version 2.1 php 4.1.2-2.17, php-imap 4.1.2-2.17, php-ldap 4.1.2-2.17, php-odbc 4.1.2-2.17, php-mysql 4.1.2-2.17, php-pgsql 4.1.2-2.17, +1 more
    fixed: vendor fix RHSA-2007:0154
  • Red Hat Enterprise Linux AS version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.ent Red Hat Enterprise Linux AS version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 more
    fixed: vendor fix RHSA-2007:0155
  • Red Hat Enterprise Linux ES version 2.1 php 4.1.2-2.17, php-imap 4.1.2-2.17, php-ldap 4.1.2-2.17, php-odbc 4.1.2-2.17, php-mysql 4.1.2-2.17, php-pgsql 4.1.2-2.17, +1 more
    fixed: vendor fix RHSA-2007:0154
  • Red Hat Enterprise Linux ES version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.ent Red Hat Enterprise Linux ES version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 more
    fixed: vendor fix RHSA-2007:0155
  • Red Hat Enterprise Linux WS version 2.1 php 4.1.2-2.17, php-imap 4.1.2-2.17, php-ldap 4.1.2-2.17, php-odbc 4.1.2-2.17, php-mysql 4.1.2-2.17, php-pgsql 4.1.2-2.17, +1 more
    fixed: vendor fix RHSA-2007:0154
  • Red Hat Enterprise Linux WS version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.ent Red Hat Enterprise Linux WS version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 more
    fixed: vendor fix RHSA-2007:0155
  • Red Hat Linux Advanced Workstation 2.1 php 4.1.2-2.17, php-imap 4.1.2-2.17, php-ldap 4.1.2-2.17, php-odbc 4.1.2-2.17, php-mysql 4.1.2-2.17, php-pgsql 4.1.2-2.17, +1 more
    fixed: vendor fix RHSA-2007:0154
show 1 more
  • Red Hat Stronghold 4.0 for Red Hat Enterprise Linux AS (version 2.1) stronghold-php 4.1.2-15, stronghold-php-imap 4.1.2-15, stronghold-php-ldap 4.1.2-15, stronghold-php-odbc 4.1.2-15, stronghold-php-snmp 4.1.2-15, stronghold-php-mysql 4.1.2-15, +2 more
    fixed: vendor fix RHSA-2007:0163

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-9939)
  2. Published

Exploit prediction

40.89% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Metasploit exploit/multi/php/php_unserialize_zval_cookie PHP 4 unserialize() ZVAL Reference Counter Overflow (Cookie) metasploit exploit, average rank, 2007-03-04
  • EDB-16310 PHP 4 - Unserialize() ZVAL Reference Counter Overflow (Cookie) (Metasploit) remote, 2010-09-20
  • EDB-9939 PHP < 4.5.0 - Unserialize Overflow (Metasploit) remote, 2007-03-01
  • EDB-3396 PHP 4.4.4 - 'Unserialize()' ZVAL Reference Counter Overflow (PoC) dos, 2007-03-02
  • php-security.org http://www.php-security.org/MOPB/MOPB-04-2007.html referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.