CVE-2016-4072

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

Published May 20, 2016 CVSS 3.0 · 9.8 Critical EPSS 5.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-499-1 php5 security update
Debian DSA Debian DSA DSA-3560-1 php5 security update
EUVD EUVD EUVD-2016-5073 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.
Ubuntu USN Ubuntu USN USN-2984-1 PHP vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 6, 2024, 12:17 AM
Reserved
Apr 23, 2016, 12:00 AM
Status
Modified
Published
May 20, 2016, 11:00 AM
Modified
Jun 17, 2026, 12:46 AM
Severity
Moderate
Public date
Mar 19, 2016, 12:00 AM