CVE-2020-7063

Files added to tar with Phar::buildFromIterator have all-access permissions

MEDIUM
5.3
CVSS Score
Published: February 27, 2020 at 08:25 PM UTC
Updated: June 17, 2026 at 03:24 AM UTC
4 products affected across 4 vendorsDebian LinuxLeapPHP

Using PHP by PHP Group?

Get instant alerts when new vulnerabilities affect PHP - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 2%

Description

In PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3, when creating PHAR archive using PharData::buildFromIterator() function, the files are added with default permissions (0666, or all access) even if the original files on the filesystem were with more restrictive permissions. This may result in files having more lax permissions than intended when such archive is extracted.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
7.2.0 ≤ v ≤ 7.2.277.2.x ≤ v < 7.2.287.3.0 ≤ v ≤ 7.3.147.3.x ≤ v < 7.3.157.4.0 ≤ v ≤ 7.4.27.4.x ≤ v < 7.4.37.2.x7.3.x7.4.x
Affected range stops below 7.2.28, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.3.15, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.4.3, so it looks safe — our inference, not a vendor statement
v < 5.19.0
Affected range stops below 5.19.0, so it looks safe — our inference, not a vendor statement

References (8)

x_refsource_MISCExploitVendor Advisory
https://bugs.php.net/bug.php?id=79082
Mailing Listx_refsource_MLISTThird Party Advisory
https://lists.debian.org/debian-lts-announce/2020/03/msg00034.html
Vendor Advisoryx_refsource_GENTOOThird Party Advisory
https://security.gentoo.org/glsa/202003-57
Vendor Advisoryx_refsource_UBUNTUThird Party Advisory
https://usn.ubuntu.com/4330-1/
Vendor Advisoryx_refsource_DEBIANThird Party Advisory
https://www.debian.org/security/2020/dsa-4717
Vendor Advisoryx_refsource_DEBIANThird Party Advisory
https://www.debian.org/security/2020/dsa-4719
x_refsource_CONFIRMPatchThird Party Advisory
https://www.tenable.com/security/tns-2021-14

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-281

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card