Every CVE Search/ Get API key

CVE-2015-6835

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13...

9.8 CriticalPublic exploitFix available

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13 mishandles multiple php_var_unserialize calls, which allow remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via crafted session content.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

36.2%Down 10.5 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13 mishandles multiple php_var_unserialize calls, which allow remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via crafted session content.

Record
CVE-2015-6835
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Updated
2026-11-02
CVE List No score

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13 mishandles multiple php_var_unserialize calls, which allow remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via crafted session content.

Record
CVE-2015-6835
Updated
2026-11-02
EUVDEUVD-2015-6771 No score

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13 mishandles multiple php_var_unserialize calls, which allow remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via crafted session content.

Record
EUVD-2015-6771
Updated
2026-11-03
GitHub AdvisoriesGHSA-5qpr-hcf2-vwc2 9.8

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13...

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13 mishandles multiple php_var_unserialize calls, which allow remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via crafted session content.

Record
GHSA-5qpr-hcf2-vwc2
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBELL-CVE-2015-6835 9.8

CVE-2015-6835 does not affect BellSoft software

Record
BELL-CVE-2015-6835
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2015-6835 9.8

The session deserializer in PHP before 5.4.45, 5.5.x before 5.5.29, and 5.6.x before 5.6.13 mishandles multiple php_var_unserialize calls, which allow remote attackers to execute arbitrary code or cause a denial of service (use-after-free) via crafted session content.

Record
UBUNTU-CVE-2015-6835
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2015-0365 No score

Updated php packages fix security vulnerabilities

Updated php packages fix security vulnerabilities:

The php package has been updated to version 5.5.29, which fixes several security issues and other bugs. See the upstream ChangeLog for more details.

Record
MGASA-2015-0365
Updated
2026-11-02
OSVSUSE-SU-2015:1633-1 No score

Security update for php5

This update of PHP5 brings several security fixes.

Security fixes:

  • CVE-2015-6831: A use after free vulnerability in unserialize() has been fixed which could be used to crash php or potentially execute code. [bnc#942291] [bnc#942294] [bnc#942295]
  • CVE-2015-6832: A dangling pointer in the unserialization of ArrayObject items could be used to crash php or potentially execute code. [bnc#942293]
  • CVE-2015-6833: A directory traversal when extracting ZIP files could be used to overwrite files outside of intended area. [bnc#942296]
  • CVE-2015-6834: A Use After Free Vulnerability in unserialize() has been fixed which could be used to crash php or potentially execute code. [bnc#945403]
  • CVE-2015-6835: A Use After Free Vulnerability in session unserialize() has been fixed which could be used to crash php or potentially execute code. [bnc#945402]
  • CVE-2015-6836: A SOAP serialize_function_call() type confusion leading to remote code execution problem was fixed. [bnc#945428]
  • CVE-2015-6837 CVE-2015-6838: Two NULL pointer dereferences in the XSLTProcessor class were fixed. [bnc#945412]

Bugfixes:

  • Compare with SQL_NULL_DATA correctly [bnc#935074]
  • If MD5 was disabled in net-snmp we have to disable the used MD5 function in ext/snmp/snmp.c as well. (bsc#944302)

Also the Suhosin framework was updated to 0.9.38. [fate#319325]

Record
SUSE-SU-2015:1633-1
Updated
2026-11-02
OSVUSN-2758-1 No score

php5 vulnerabilities

It was discovered that the PHP phar extension incorrectly handled certain files. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service. (CVE-2015-5589)

It was discovered that the PHP phar extension incorrectly handled certain filepaths. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-5590)

Taoguang Chen discovered that PHP incorrectly handled unserializing objects. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-6831, CVE-2015-6834, CVE-2015-6835

Sean Heelan discovered that PHP incorrectly handled unserializing objects. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-6832)

It was discovered that the PHP phar extension incorrectly handled certain archives. A remote attacker could use this issue to cause files to be placed outside of the destination directory. (CVE-2015-6833)

Andrea Palazzo discovered that the PHP Soap client incorrectly validated data types. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-6836)

It was discovered that the PHP XSLTProcessor class incorrectly handled certain data. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service. (CVE-2015-6837)

Record
USN-2758-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php5
Debian:7
From an advisory covering 5 CVEs
before 5.4.45-0+deb7u1, plus listed versions
5.4.11-15.4.15-15.4.34-0+deb7u15.4.35-0+deb7u15.4.35-0+deb7u2
Show 30 moreShow less
5.4.36-0+deb7u15.4.36-0+deb7u35.4.38-0+deb7u15.4.39-0+deb7u15.4.39-0+deb7u25.4.4-145.4.4-14+deb7u15.4.4-14+deb7u105.4.4-14+deb7u115.4.4-14+deb7u125.4.4-14+deb7u135.4.4-14+deb7u145.4.4-14+deb7u25.4.4-14+deb7u35.4.4-14+deb7u45.4.4-14+deb7u55.4.4-14+deb7u75.4.4-14+deb7u85.4.4-14+deb7u95.4.4-155.4.4-15.15.4.41-0+deb7u15.4.44-0+deb7u15.4.6-15.4.6-25.4.8-15.4.9-15.4.9-25.4.9-35.4.9-4
5.4.45-0+deb7u1
php5
Debian:8
From an advisory covering 5 CVEs
before 5.6.13+dfsg-0+deb8u1, plus listed versions
5.6.11+dfsg-15.6.12+dfsg-0+deb8u15.6.12+dfsg-15.6.7+dfsg-15.6.9+dfsg-0+deb8u15.6.9+dfsg-1
5.6.13+dfsg-0+deb8u1
php
Mageia:4
From an advisory covering 5 CVEs
before 5.5.29-1.mga4
5.5.29-1.mga4
php-apc
Mageia:4
From an advisory covering 5 CVEs
before 3.1.15-4.19.mga4
3.1.15-4.19.mga4
rh-php56-php
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-bcmath
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-cli
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-common
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-dba
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-dbg
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
Show 56 moreShow less
Affected packages
PackageAffectedFixed
rh-php56-php-debuginfo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-devel
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-embedded
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-enchant
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-fpm
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-gd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-gmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-imap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-intl
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-ldap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-mbstring
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-mysqlnd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-odbc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-opcache
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-pdo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-pgsql
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-process
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-pspell
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-recode
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-snmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-soap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-tidy
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-xml
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php-xmlrpc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 12 CVEs
before 0:5.6.5-8.el6
0:5.6.5-8.el6
rh-php56-php
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-bcmath
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-cli
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-common
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-dba
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-dbg
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-debuginfo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-devel
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-embedded
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-enchant
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-fpm
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-gd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-gmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-intl
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-ldap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-mbstring
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-mysqlnd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-odbc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-opcache
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-pdo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-pgsql
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-process
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-pspell
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-recode
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-snmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-soap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-xml
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
rh-php56-php-xmlrpc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 12 CVEs
before 0:5.6.5-8.el7
0:5.6.5-8.el7
php5
SUSE:Linux Enterprise Module for Web and Scripting 12
From an advisory covering 8 CVEs
before 5.5.14-36.1
5.5.14-36.1
php5
SUSE:Linux Enterprise Software Development Kit 12
From an advisory covering 8 CVEs
before 5.5.14-36.1
5.5.14-36.1
php5
Ubuntu:14.04:LTS
before 5.5.9+dfsg-1ubuntu4.13, plus listed versions
5.5.3+dfsg-1ubuntu25.5.3+dfsg-1ubuntu35.5.6+dfsg-1ubuntu15.5.6+dfsg-1ubuntu25.5.8+dfsg-2ubuntu1
Show 14 moreShow less
5.5.9+dfsg-1ubuntu15.5.9+dfsg-1ubuntu25.5.9+dfsg-1ubuntu35.5.9+dfsg-1ubuntu45.5.9+dfsg-1ubuntu4.15.5.9+dfsg-1ubuntu4.25.5.9+dfsg-1ubuntu4.35.5.9+dfsg-1ubuntu4.45.5.9+dfsg-1ubuntu4.55.5.9+dfsg-1ubuntu4.65.5.9+dfsg-1ubuntu4.75.5.9+dfsg-1ubuntu4.95.5.9+dfsg-1ubuntu4.115.5.9+dfsg-1ubuntu4.12
5.5.9+dfsg-1ubuntu4.13
php5
Ubuntu:14.04:LTS
From an advisory covering 10 CVEs
before 5.5.9+dfsg-1ubuntu4.13, plus listed versions
5.5.3+dfsg-1ubuntu25.5.3+dfsg-1ubuntu35.5.6+dfsg-1ubuntu15.5.6+dfsg-1ubuntu25.5.8+dfsg-2ubuntu1
Show 14 moreShow less
5.5.9+dfsg-1ubuntu15.5.9+dfsg-1ubuntu25.5.9+dfsg-1ubuntu35.5.9+dfsg-1ubuntu45.5.9+dfsg-1ubuntu4.15.5.9+dfsg-1ubuntu4.25.5.9+dfsg-1ubuntu4.35.5.9+dfsg-1ubuntu4.45.5.9+dfsg-1ubuntu4.55.5.9+dfsg-1ubuntu4.65.5.9+dfsg-1ubuntu4.75.5.9+dfsg-1ubuntu4.95.5.9+dfsg-1ubuntu4.115.5.9+dfsg-1ubuntu4.12
5.5.9+dfsg-1ubuntu4.13

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBPHP Session Deserializer - Use-After-Free2015-09-09
PoC in GitHubockeghem/CVE-2015-6835-checker2015-12-19

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, Exploit-DB, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2015-6835 is a critical vulnerability (CVSS 9.8) in Php, published September 9, 2015. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 36.2%, the 98th percentile. Fixed in php5 5.5.9+dfsg-1ubuntu4.13.

References

Show 87 moreShow less
MoveEnter Open