# CVE-2020-7063: Files added to tar with Phar::buildFromIterator have all-access permissions

- Severity: Medium 5.5 (CVSS:3.1, scored by php) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.59%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-27T20:25:15.606Z
- Modified: 2026-09-08T08:48:17.922Z
- Also known as: BIT-LIBPHP-2020-7063, BIT-PHP-2020-7063, BIT-PHP-MIN-2020-7063
- Weaknesses: CWE-281
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 7.3.x before 7.3.15; from 7.4.x before 7.4.3; from 7.2.x before 7.2.28
- php php: from 7.2.0 up to 7.2.27; from 7.3.0 up to 7.3.14; from 7.4.0 up to 7.4.2
- tenable tenable.sc: before 5.19.0
- debian debian_linux: 8.0; 9.0; 10.0
- opensuse leap: 15.1
- libphp (Bitnami): from 7.2.0 before 7.2.28; from 7.3.0 before 7.3.15; from 7.4.0 before 7.4.3
- php (Bitnami): from 7.2.0 before 7.2.28; from 7.3.0 before 7.3.15; from 7.4.0 before 7.4.3
- php-min (Bitnami): from 7.2.0 before 7.2.28; from 7.3.0 before 7.3.15; from 7.4.0 before 7.4.3

## Every score

- php: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugs.php.net/bug.php?id=79082> (exploit, advisory, vendor-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00023.html> (advisory, third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202003-57> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/03/msg00034.html> (advisory, mailing-list, third-party-advisory)
- <https://usn.ubuntu.com/4330-1/> (advisory, third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2020/dsa-4717> (advisory, third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2020/dsa-4719> (advisory, third-party-advisory, vendor-advisory)
- <https://www.tenable.com/security/tns-2021-14> (advisory, patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7063> (web)

## Sources

- CVE List: [CVE-2020-7063](https://www.cve.org/CVERecord?id=CVE-2020-7063), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2020-7063](https://nvd.nist.gov/vuln/detail/CVE-2020-7063), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2020-7063](https://osv.dev/vulnerability/BIT-LIBPHP-2020-7063), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2020-7063](https://osv.dev/vulnerability/BIT-PHP-2020-7063), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2020-7063](https://osv.dev/vulnerability/BIT-PHP-MIN-2020-7063), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-7063 · Whole record: https://cve.day/CVE-2020-7063.json · Rebuilt by cve.day 2026-11-25T22:57:51.000Z
