Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2017-5340

php: Use of uninitialized memory in unserialize()

Overview

Published
11 Jan 2017
Modified
17 Jun 2026
Critical CVE
0 Registry packages
54 OS packages
1 Linux distributions
Yes Fix available

Description

Zend/zend_hash.c in PHP before 7.0.15 and 7.1.x before 7.1.1 mishandles certain cases that require large array allocations, which allows remote attackers to execute arbitrary code or cause a denial of service (integer overflow, uninitialized memory access, and use of arbitrary destructor function pointers) via crafted serialized data.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-190

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 2 fixes

Red Hat 1 release · 2 packages

wont fix 1 fixed 1
php rh-php70-php
Red Hat fixes for CVE-2017-5340
ReleasePackageFixed inAdvisory
7 php +24 wont fix —
7 rh-php70-php +28 0:7.0.27-1.el7 RHSA-2018:1296

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.