CVE-2020-7063 in Debian Linux and 3 more products
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 resul...
Affects 4 products from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Debian | Debian Linux | 8.0 9.0 10.0 |
| Opensuse | Leap | 15.1 |
| Php | Php | ≥ 7.2.0, ≤ 7.2.27 ≥ 7.3.0, ≤ 7.3.14 ≥ 7.4.0, ≤ 7.4.2 |
| Tenable | Tenable.Sc | < 5.19.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-7063 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-211463-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| Published | 2020-02-27 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-281: CWE-281
Analysis AI-written, not human-reviewed
A vulnerability 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 allows files added to PHAR archives using the PharData::buildFromIterator() function to have more lax permissions than intended, potentially leading to unauthorized access.
An attacker could exploit this vulnerability by creating a PHAR archive with files that have overly permissive permissions, which could then be extracted and accessed by unauthorized users.
Questions
What is CVE-2020-7063?
A vulnerability 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 allows files added to PHAR archives using the PharData::buildFromIterator() function to have more lax permissions than intended, potentially leading to unauthorized access.
What is the CVSS score for CVE-2020-7063?
CVE-2020-7063 has CVSS 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. EPSS: 1.6%.
Is CVE-2020-7063 actively exploited?
No confirmed active exploitation of CVE-2020-7063 as of 2026-05-30.
How do I remediate CVE-2020-7063?
Priority: MEDIUM. Advisory: https://bugs.php.net/bug.php?id=79082
What systems are affected by CVE-2020-7063?
CVE-2020-7063 affects Debian Debian Linux; Opensuse Leap; Php Php; Tenable Tenable.Sc.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Debian","product":"Debian Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.