Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

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

Exploitability

The vulnerability requires an attacker to have access to the extracted files from a PHAR archive that was created using the buildFromIterator() function. The severity is rated as moderate, with a CVSS score of 5.0, indicating that while exploitable, it requires specific conditions to be met (Red Hat).

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-71537MEDIUM6.5
  • PHP logoPHP
  • paymenter/paymenter
NoYesSep 18, 2026
CVE-2026-77616MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 2026
CVE-2026-77610MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 2026
CVE-2026-77609MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 2026
CVE-2026-77608MEDIUM6.1
  • PHP logoPHP
  • mediawiki/semantic-media-wiki
NoYesSep 18, 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