CVE-2020-7063
PHP vulnerability analysis and mitigation

Overview

CVE-2020-7063 affects PHP versions 7.2.x below 7.2.28, 7.3.x below 7.3.15 and 7.4.x below 7.4.3. The vulnerability relates to the PharData::buildFromIterator() function, where files are added to PHAR archives with default permissions (0666, or all access) even if the original files on the filesystem had more restrictive permissions (NVD).

Technical details

When creating PHAR archives using the PharData::buildFromIterator() function, the files are added with default permissions (0666) regardless of their original filesystem permissions. This behavior differs from files added using PharData::addFile(), which preserves the original file permissions. The issue occurs specifically when using the buildFromIterator method to create tar archives (PHP Bug).

Impact

This vulnerability may result in files having more permissive access rights than intended when such archives are extracted. This could potentially lead to unauthorized access to sensitive files if an attacker has access to the extracted files (Rapid7).

Mitigation and workarounds

The vulnerability has been fixed in PHP versions 7.2.28, 7.3.15, and 7.4.3 and later. Users should upgrade to these versions or later to address the issue. Various Linux distributions have also released security updates to address this vulnerability in their PHP packages (OpenSUSE, Ubuntu).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23622HIGH8.7
  • PHPPHP
  • alextselegidis/easyappointments
NoNoJan 15, 2026
CVE-2025-14894HIGH7.5
  • PHPPHP
  • livewire-filemanager/filemanager
NoNoJan 16, 2026
CVE-2026-23626MEDIUM6.8
  • PHPPHP
  • kimai/kimai
NoYesJan 18, 2026
CVE-2025-69198MEDIUM6
  • PHPPHP
  • pterodactyl/panel
NoYesJan 19, 2026
CVE-2026-23496MEDIUM5.4
  • PHPPHP
  • pimcore/web2print-tools-bundle
NoYesJan 15, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management