9.8
CRITICAL CVSS 3.0
CVE-2016-7124
PHP deserialization Remote Denial of Service Vulnerability
Description

ext/standard/var_unserializer.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles certain invalid objects, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via crafted serialized data that leads to a (1) __destruct call or (2) magic method call.

INFO

Published Date :

Sept. 12, 2016, 1:59 a.m.

Last Modified :

April 12, 2025, 10:46 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2016-7124 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Php php
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 HIGH [email protected]
CVSS 3.0 CRITICAL [email protected]
Solution
This vulnerability can be mitigated by updating PHP to a patched version.
  • Update PHP packages to a non-vulnerable version.
  • Upgrade to PHP version 5.6.25 or later.
  • Upgrade to PHP version 7.0.10 or later.
Public PoC/Exploit Available at Github

CVE-2016-7124 has a 17 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2016-7124 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2016-7124 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

https://github.com/fine-1/php-SER-libs

PHP

Updated: 3 weeks, 1 day ago
0 stars 0 fork 0 watcher
Born at : Aug. 1, 2025, 8:30 a.m. This repo has been linked 1 different CVEs too.

【Hello-CTF labs】fine-1/php-SER-libs 的容器封装版本,支持动态flag

Dockerfile PHP Shell

Updated: 2 months, 1 week ago
6 stars 0 fork 0 watcher
Born at : April 28, 2025, 5:11 a.m. This repo has been linked 1 different CVEs too.

Tips, Tricks and Hack Tools for Pentest and CTF

ctf ctf-tools exploits exploits-scripts hacking-cheatsheet hacking-tips hacking-tools mobile-hacking xss

Ruby Python PHP PowerShell Batchfile VBScript ASP.NET Classic ASP HTML CSS

Updated: 1 month, 2 weeks ago
3 stars 0 fork 0 watcher
Born at : April 22, 2025, 9:07 p.m. This repo has been linked 31 different CVEs too.

Web CTF CheatSheet 🐈

JavaScript

Updated: 9 months ago
0 stars 0 fork 0 watcher
Born at : Nov. 11, 2024, 8:48 p.m. This repo has been linked 23 different CVEs too.

沉一沉吧

Python Batchfile

Updated: 1 year, 1 month ago
0 stars 0 fork 0 watcher
Born at : July 30, 2023, 10:05 a.m. This repo has been linked 1 different CVEs too.

【Hello-CTF labs】PHPSerialize-labs是一个使用php语言编写的,用于学习CTF中PHP反序列化的入门靶场。旨在帮助大家对PHP的序列化和反序列化有一个全面的了解。

ctf ctf-challenges ctf-labs

PHP Dockerfile CSS Hack

Updated: 6 days, 6 hours ago
186 stars 16 fork 16 watcher
Born at : July 13, 2023, 7:48 a.m. This repo has been linked 1 different CVEs too.

None

Updated: 2 years, 7 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 11, 2023, 1:21 p.m. This repo has been linked 1044 different CVEs too.

php反序列化靶场,集合了常见的php反序列化漏洞——由这周末在做梦制作

PHP

Updated: 1 month, 4 weeks ago
148 stars 21 fork 21 watcher
Born at : March 18, 2022, 2:21 a.m. This repo has been linked 1 different CVEs too.

反序列化 代码审计 靶场

PHP

Updated: 6 months, 1 week ago
6 stars 1 fork 1 watcher
Born at : Dec. 2, 2021, 11:59 a.m. This repo has been linked 1 different CVEs too.

Web CTF CheatSheet 🐈

ctf cheatsheet capture-the-flag

PHP Classic ASP ASP.NET Python Ruby Batchfile PowerShell VBScript

Updated: 1 month ago
26 stars 6 fork 6 watcher
Born at : July 17, 2021, 6:30 a.m. This repo has been linked 23 different CVEs too.

None

Updated: 5 months ago
14 stars 4 fork 4 watcher
Born at : May 25, 2020, 7:51 a.m. This repo has been linked 1029 different CVEs too.

None

PHP ASP Python Ruby Batchfile PowerShell VBScript

Updated: 1 year, 8 months ago
3 stars 2 fork 2 watcher
Born at : Jan. 24, 2020, 2:45 a.m. This repo has been linked 9 different CVEs too.

MS17-010 As all of our research is now in Metasploit master repository

Dockerfile Python Makefile C Shell Ruby Java PHP

Updated: 6 years, 7 months ago
0 stars 0 fork 0 watcher
Born at : Jan. 17, 2019, 4:35 p.m. This repo has been linked 22 different CVEs too.

Web-CTF-Cheatsheet

PHP ASP Python Ruby Batchfile PowerShell Visual Basic

Updated: 2 months ago
1 stars 1 fork 1 watcher
Born at : Sept. 24, 2018, 12:36 p.m. This repo has been linked 8 different CVEs too.

Web CTF CheatSheet 🐈

cheatsheet ctf

Ruby PHP Batchfile PowerShell Python VBScript Classic ASP ASP.NET

Updated: 1 month ago
2813 stars 492 fork 492 watcher
Born at : Dec. 14, 2017, 3:19 p.m. This repo has been linked 31 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2016-7124 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2016-7124 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://openwall.com/lists/oss-security/2016/09/02/9
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-2750.html
    Added Reference http://www.php.net/ChangeLog-5.php
    Added Reference http://www.php.net/ChangeLog-7.php
    Added Reference http://www.securityfocus.com/bid/92756
    Added Reference http://www.securitytracker.com/id/1036680
    Added Reference https://bugs.php.net/bug.php?id=72663
    Added Reference https://github.com/php/php-src/commit/20ce2fe8e3c211a42fee05a461a5881be9a8790e?w=1
    Added Reference https://security.gentoo.org/glsa/201611-22
    Added Reference https://www.tenable.com/security/tns-2016-19
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Jan. 05, 2018

    Action Type Old Value New Value
    Added Reference http://rhn.redhat.com/errata/RHSA-2016-2750.html [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 03, 2017

    Action Type Old Value New Value
    Added Reference https://www.tenable.com/security/tns-2016-19 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 16, 2017

    Action Type Old Value New Value
    Added Reference http://www.securitytracker.com/id/1036680 [No Types Assigned]
  • CVE Modified by [email protected]

    Jul. 01, 2017

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/201611-22 [No Types Assigned]
  • CVE Modified by [email protected]

    Nov. 28, 2016

    Action Type Old Value New Value
    Added Reference http://www.securityfocus.com/bid/92756 [No Types Assigned]
  • Modified Analysis by [email protected]

    Sep. 12, 2016

    Action Type Old Value New Value
    Added CPE Configuration Configuration 1 OR *cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:* *cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:* Configuration 2 OR *cpe:2.3:a:php:php:5.6.24:*:*:*:*:*:*:* (and previous)
    Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P)
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type http://www.php.net/ChangeLog-7.php No Types Assigned http://www.php.net/ChangeLog-7.php Release Notes
    Changed Reference Type https://github.com/php/php-src/commit/20ce2fe8e3c211a42fee05a461a5881be9a8790e?w=1 No Types Assigned https://github.com/php/php-src/commit/20ce2fe8e3c211a42fee05a461a5881be9a8790e?w=1 Issue Tracking, Patch
    Changed Reference Type https://bugs.php.net/bug.php?id=72663 No Types Assigned https://bugs.php.net/bug.php?id=72663 Issue Tracking, Exploit
    Changed Reference Type http://openwall.com/lists/oss-security/2016/09/02/9 No Types Assigned http://openwall.com/lists/oss-security/2016/09/02/9 Mailing List
    Changed Reference Type http://www.php.net/ChangeLog-5.php No Types Assigned http://www.php.net/ChangeLog-5.php Release Notes
    Added CWE CWE-502
  • Initial Analysis by [email protected]

    Sep. 12, 2016

    Action Type Old Value New Value
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 9.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 7.5
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

76.70 }} 2.02%

score

0.98905

percentile