CVE-2014-8142 Use after free in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary code via crafted unserialize calls due to a use-after-free flaw in PHP's standard extension.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2014-8142?

CVE-2014-8142 is a high-severity use after free vulnerability in Php Php, published on 20 Dec 2014. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Which versions are affected by CVE-2014-8142?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2014-8142?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2014-8142 being exploited?

There is no known exploitation of CVE-2014-8142 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Php Php vulnerabilities

Sources

Also known as GHSA-mq7m-72cj-7m7m, MGASA-2014-0542, UBUNTU-CVE-2014-8142.

Is CVE-2014-8142 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free