Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
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-2016-4072

php: Invalid memory write in phar on filename containing \0 inside name

Overview

Published
20 May 2016
Modified
17 Jun 2026
Critical CVE
0 Registry packages
56 OS packages
1 Linux distributions
Yes Fix available

Description

The Phar extension in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5 allows remote attackers to execute arbitrary code via a crafted filename, as demonstrated by mishandling of \0 characters by the phar_analyze_path function in ext/phar/phar.c.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.0 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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-20

Affected packages · 0

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

Operating systems · 4 fixes

Red Hat 1 release · 4 packages

wont fix 1 fixed 3
php rh-php56 rh-php56-php rh-php56-php-pear
Red Hat fixes for CVE-2016-4072
ReleasePackageFixed inAdvisory
7 php +24 wont fix —
7 rh-php56 +2 0:2.3-1.el7 RHSA-2016:2750
7 rh-php56-php +26 0:5.6.25-1.el7 RHSA-2016:2750
7 rh-php56-php-pear 1:1.9.5-4.el7 RHSA-2016:2750

References

Show all 23 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.