CVE-2020-7063

published 27 Feb 2020 · updated 16 Sep 2024

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

5.5MediumCVSS 5.5EPSS 2%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in PHP 7.2.28, PHP 7.3.15 and PHP 7.4.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=7.2.x <7.2.28, >=7.3.x <7.3.15, >=7.4.x <7.4.37.2.28, 7.3.15, 7.4.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-7063 severity on Zeptric[![CVE-2020-7063](https://zeptric.io/badge/cve/CVE-2020-7063.svg)](https://zeptric.io/cve/CVE-2020-7063)