CVE-2020-7063CWE-281

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

Medium · published February 27, 2020

CVSS v3.1
5.5
EPSS
2%
Percentile
75.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.01594 · 75.5th percentile
Weakness
CWE-281 · Improper Preservation of Permissions
Published
2020-02-27T20:25Z
EPSS history
Timeline
  • 27 FEB 20:25Z
    Files added to tar with Phar::buildFromIterator have all-access permissions
    cvelistv5