patchminder
No public exploit found CVE-2020-7063

Vulnerabilityin PHP.

Published 27 Feb 2020 · Updated 16 Sep 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Medium 5.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.6% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 7.2.28, 7.3.15, 7.4.3
In plain words

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.

What to do now
  • Upgrade PHP to 7.2.28, 7.3.15, 7.4.3 or later, whichever matches your release line.
  • Can't upgrade today? Use different Phar class functions to compose the archive, such as addFile(), or reset file permissions upon extracting files from the archive.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
PHP
7.3.x to before 7.3.15
7.3.15
CVE record
PHP
7.4.x to before 7.4.3
7.4.3
CVE record
PHP
7.2.x to before 7.2.28
7.2.28
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Jan 2020
    CVE ID reserved by php.
  2. 27 Feb 2020
    Published in the CVE List.
  3. 16 Sep 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other PHP vulnerabilities

Same weakness: Improper preservation of permissions

All CWE-281 vulnerabilities

References
Cite this page

Patchminder. CVE-2020-7063: Vulnerability in PHP. https://patchminder.com/cve/cve-2020-7063/ (accessed 5 December 2026).