CVE-2020-7063: Files added to tar with Phar::buildFromIterator have all-access permissions
Vulnerability summary
CVE-2020-7063 is a medium (CVSS 5.5) Improper Preservation of Permissions vulnerability in debian debian_linux. EPSS estimates a 1.59% chance of exploitation in the next 30 days, higher than 75.7% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 8Timeline
- 27-02-2020PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NDiffers
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NDiffers
EPSS trend
Probability
1.59%
Chance of exploitation in the next 30 days
Percentile
76%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.59% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu3 products
- php5< 5.5.9+dfsg-1ubuntu4.29+esm11
- php7.0< 7.0.33-0ubuntu0.16.04.14
- php7.2< 7.2.24-0ubuntu0.18.04.4
Debian2 products
- php7.4< 7.4.3-1
- debian_linuxEOL8.0 | 9.0 | 10.0
Alpine1 product
- php7< 7.3.15-r0 | < 7.2.31-r0
Opensuse1 product
- leapEOL15.1
Php1 product
- php≥ 7.2.0, ≤ 7.2.27 | ≥ 7.3.0, ≤ 7.3.14 | ≥ 7.4.0, ≤ 7.4.2
Php group1 product
- php≥ 7.3.x, < 7.3.15 | ≥ 7.4.x, < 7.4.3 | ≥ 7.2.x, < 7.2.28
Tenable1 product
- tenable.sc< 5.19.0
7 vendors · 10 products
References
14 links- lists.opensuse.org/opensuse-security-announce/2020-03/msg00023.htmlVendor AdvisoryX Refsource SUSEThird Party Advisory
- lists.debian.org/debian-lts-announce/2020/03/msg00034.htmlMailing ListX Refsource MLISTThird Party Advisory