---
title: "CVE-2014-8142\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2014-8142?format=md
keywords: index, follow
---

# CVE-2014-8142

Publication date 20 December 2014

Last updated 24 July 2024

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2014-8142?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 14.10 utopic | Fixed 5.5.12+dfsg-2ubuntu4.2 |
| 14.04 LTS trusty | Fixed 5.5.9+dfsg-1ubuntu4.6 |
| 12.04 LTS precise | Fixed 5.3.10-1ubuntu3.16 |
| 10.04 LTS lucid | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2014-8142?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

unserialize shouldn't be run on untrusted input
Patch was incomplete, leading to CVE-2015-0231

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| php5 | * Upstream:   <http://git.php.net/?p=php-src.git;a=commit;h=630f9c33c23639de85c3fd306b209b538b73b4c9> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-8142)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2014-8142)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2014-8142)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2014-8142)

### Related Ubuntu Security Notices (USN)

+ [USN-2501-1](https://usn.ubuntu.com/USN-2501-1)
+ PHP vulnerabilities
+ 17 February 2015

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2014-8142>
