Skip to content
OpenAdvisories
Unscored Public exploit CVE-2014-8142 EUVD-2014-7985GHSA-mq7m-72cj-7m7m

Use-after-free vulnerability in the process_nested_data function in ext/standard/var_unserializer.re in PHP before 5.4.36, 5.5.x before 5.5…

Published Dec 20, 2014 · Updated Aug 6, 2024 · Assigned by redhat

Description

Use-after-free vulnerability in the process_nested_data function in ext/standard/var_unserializer.re in PHP before 5.4.36, 5.5.x before 5.5.20, and 5.6.x before 5.6.4 allows remote attackers to execute arbitrary code via a crafted unserialize call that leverages improper handling of duplicate keys within the serialized properties of an object, a different vulnerability than CVE-2004-1019.

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.

ReleasePackageFixed inAdvisory
Debian 7 php5 5.4.36-0+deb7u1 DSA-3117-1
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.6 USN-2501-1
ReleasePackageFixed inAdvisory
RHEL 7 php +24 5.4.16-36.ael7b_1 RHSA-2015:1135
RHEL 2 php54 +5 2.0-1.el6 RHSA-2015:1066, RHSA-2015:1053
RHEL 2 php54-php +24 5.4.40-1.el6 RHSA-2015:1066
RHEL 2 php54-php-pecl-zendopcache 7.0.4-3.el6 RHSA-2015:1066
RHEL 2 php55-php +26 5.5.21-2.el6 RHSA-2015:1053
ReleasePackageFixed inAdvisory
SLES 12 php5 5.5.14-11.3 SUSE-SU-2015:0365-1
SLES 11 SP2 php53 5.3.17-47.1 SUSE-SU-2016:1638-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 php +24 5.4.16-36.el7_1 ELSA-2015-1135
Oracle Linux 7 php54 +5 2.0-1.el7 ELSA-2015-1066, ELSA-2015-1053
Oracle Linux 7 php54-php +22 5.4.40-1.el7 ELSA-2015-1066
Oracle Linux 7 php54-php-imap +1 5.4.40-1.el6 ELSA-2015-1066
Oracle Linux 7 php54-php-pecl-zendopcache 7.0.4-3.el7 ELSA-2015-1066
Oracle Linux 7 php55-php +26 5.5.21-2.0.1.el6 ELSA-2015-1053

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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 11

References