CVE-2020-7063: Files added to tar with Phar::buildFromIterator have all-access permissions
Noroxi assessment
Priority: Monitor (action score 21/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 1.5% (FIRST EPSS); higher than 75.5% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: apcu-panel (AlmaLinux:8) 5.1.17-1.module_el8.3.0+2009+b272fdef; libzip (AlmaLinux:8) 1.5.2-1.module_el8.5.0+152+112d3b8c, 1.5.2-1.module_el8.3.0+2009+b272fdef, 1.5.2-1.module_el8.4.0+2229+b272fdef; libzip-devel (AlmaLinux:8) 1.5.2-1.module_el8.3.0+2009+b272fdef, 1.5.2-1.module_el8.4.0+2229+b272fdef, 1.5.2-1.module_el8.5.0+152+112d3b8c.
Low priority for now. Upgrade to apcu-panel (AlmaLinux:8) 5.1.17-1.module_el8.3.0+2009+b272fdef; libzip (AlmaLinux:8) 1.5.2-1.module_el8.5.0+152+112d3b8c, 1.5.2-1.module_el8.3.0+2009+b272fdef, 1.5.2-1.module_el8.4.0+2229+b272fdef; libzip-devel (AlmaLinux:8) 1.5.2-1.module_el8.3.0+2009+b272fdef, 1.5.2-1.module_el8.4.0+2229+b272fdef, 1.5.2-1.module_el8.5.0+152+112d3b8c or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Feb 27, 2020
- Updated
- Jun 16, 2026
- EPSS
- 1.5% · 75th percentile
- CWE
- CWE-281
Report tools
Action score
21
Monitor
Low priority for now.
- CVSS
- 21 / 40 · 5.3 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.5%
CNA vs NVD score
- NVD
- 5.3
- CNA · php
- 5.5
- 0.2 point gap
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
| tenable | tenable.sc | cpe:2.3:a:tenable:tenable.sc |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php7.2.0 and later · up to 7.2.27 inclusive
- php php7.3.0 and later · up to 7.3.14 inclusive
- php php7.4.0 and later · up to 7.4.2 inclusive
Versions reported by the vendor
Affected version ranges reported by the assigning authority (php). Independent of NVD's CPE analysis and usually ahead of it.
PHP Group PHP
- 7.3.x and later · before 7.3.15affected
- 7.4.x and later · before 7.4.3affected
- 7.2.x and later · before 7.2.28affected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | apcu-panel | before 5.1.17-1.module_el8.3.0+2009+b272fdef | 5.1.17-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | libzip | before 1.5.2-1.module_el8.5.0+152+112d3b8c | 1.5.2-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | libzip | before 1.5.2-1.module_el8.3.0+2009+b272fdef | 1.5.2-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | libzip | before 1.5.2-1.module_el8.4.0+2229+b272fdef | 1.5.2-1.module_el8.4.0+2229+b272fdef |
| AlmaLinux:8 | libzip-devel | before 1.5.2-1.module_el8.3.0+2009+b272fdef | 1.5.2-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | libzip-devel | before 1.5.2-1.module_el8.4.0+2229+b272fdef | 1.5.2-1.module_el8.4.0+2229+b272fdef |
| AlmaLinux:8 | libzip-devel | before 1.5.2-1.module_el8.5.0+152+112d3b8c | 1.5.2-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | libzip-tools | before 1.5.2-1.module_el8.4.0+2229+b272fdef | 1.5.2-1.module_el8.4.0+2229+b272fdef |
| AlmaLinux:8 | libzip-tools | before 1.5.2-1.module_el8.5.0+152+112d3b8c | 1.5.2-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | libzip-tools | before 1.5.2-1.module_el8.3.0+2009+b272fdef | 1.5.2-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | php | before 7.3.20-1.module_el8.3.0+2009+b272fdef | 7.3.20-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | php | before 7.3.20-1.module_el8.5.0+152+112d3b8c | 7.3.20-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | php | before 7.3.20-1.module_el8.4.0+2229+b272fdef | 7.3.20-1.module_el8.4.0+2229+b272fdef |
| AlmaLinux:8 | php-bcmath | before 7.3.20-1.module_el8.3.0+2009+b272fdef | 7.3.20-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | php-bcmath | before 7.3.20-1.module_el8.4.0+2229+b272fdef | 7.3.20-1.module_el8.4.0+2229+b272fdef |
| AlmaLinux:8 | php-bcmath | before 7.3.20-1.module_el8.5.0+152+112d3b8c | 7.3.20-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | php-cli | before 7.3.20-1.module_el8.3.0+2009+b272fdef | 7.3.20-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | php-cli | before 7.3.20-1.module_el8.5.0+152+112d3b8c | 7.3.20-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | php-cli | before 7.3.20-1.module_el8.4.0+2229+b272fdef | 7.3.20-1.module_el8.4.0+2229+b272fdef |
| AlmaLinux:8 | php-common | before 7.3.20-1.module_el8.4.0+2229+b272fdef | 7.3.20-1.module_el8.4.0+2229+b272fdef |
| AlmaLinux:8 | php-common | before 7.3.20-1.module_el8.3.0+2009+b272fdef | 7.3.20-1.module_el8.3.0+2009+b272fdef |
| AlmaLinux:8 | php-common | before 7.3.20-1.module_el8.5.0+152+112d3b8c | 7.3.20-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | php-dba | before 7.3.20-1.module_el8.5.0+152+112d3b8c | 7.3.20-1.module_el8.5.0+152+112d3b8c |
| AlmaLinux:8 | php-dba | before 7.3.20-1.module_el8.3.0+2009+b272fdef | 7.3.20-1.module_el8.3.0+2009+b272fdef |
+96
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle queKEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2020-7061Feb 27, 2020 · heap-buffer-overflow in phar_extract_file37Monitor
- ← EarlierCVE-2020-7062Feb 27, 2020 · Null Pointer Dereference in PHP Session Upload Progress31Monitor
- Later →CVE-2020-7064Apr 1, 2020 · Use-of-uninitialized-value in exif22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:apcu-panel | 5.1.17-1.module_el8.3.0+2009+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libzip | 1.5.2-1.module_el8.5.0+152+112d3b8c · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libzip-devel | 1.5.2-1.module_el8.4.0+2229+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libzip-tools | 1.5.2-1.module_el8.5.0+152+112d3b8c · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php | 7.3.20-1.module_el8.4.0+2229+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php-bcmath | 7.3.20-1.module_el8.4.0+2229+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php-cli | 7.3.20-1.module_el8.5.0+152+112d3b8c · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php-common | 7.3.20-1.module_el8.3.0+2009+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php-dba | 7.3.20-1.module_el8.5.0+152+112d3b8c · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php-dbg | 7.3.20-1.module_el8.3.0+2009+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php-devel | 7.3.20-1.module_el8.4.0+2229+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| almalinux:php-embedded | 7.3.20-1.module_el8.3.0+2009+b272fdef · AlmaLinux:8 | Package registry (OSV) |
| debian:php5 | 5.6.40+dfsg-0+deb8u10 · Debian:8 | Package registry (OSV) |
| debian:php7.0 | 7.0.33-0+deb9u8 · Debian:9 | Package registry (OSV) |
| debian:php7.3 | 7.3.19-1~deb10u1 · Debian:10 | Package registry (OSV) |
| debian:php7.4 | 7.4.3-1 · Debian:11 | Package registry (OSV) |
| opensuse:php7 | 7.2.5-lp151.6.22.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:php7-test | 7.2.5-lp151.6.22.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| red hat:apcu-panel | 0:5.1.17-1.module+el8.1.0+3189+a1bff096 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libzip | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libzip-debuginfo | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libzip-debugsource | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libzip-devel | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libzip-tools | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libzip-tools-debuginfo | 0:1.5.2-1.module+el8.1.0+3189+a1bff096 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:php | 0:7.3.20-1.module+el8.2.0+7373+b272fdef · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:php-bcmath | 0:7.3.20-1.module+el8.2.0+7373+b272fdef · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:php-bcmath-debuginfo | 0:7.3.20-1.module+el8.2.0+7373+b272fdef · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:php-cli | 0:7.3.20-1.module+el8.2.0+7373+b272fdef · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:php-cli-debuginfo | 0:7.3.20-1.module+el8.2.0+7373+b272fdef · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
+10
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- drloopia dot rs
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- low · data or configuration can be modified
- Availability
- none
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-281 · Improper Preservation of PermissionsCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (6 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.