CVE-2020-7063

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.

Severity
MEDIUM
CVSS v3
5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N · source cna
Exploit chance (EPSS)
1.594%
chance of exploitation in the next 30 days
higher than 76.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2020-02-27Published by the CNA20:25 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
php phpfrom 7.2.0 through 7.2.27no fix listedfrom 7.3.0 through 7.3.14no fix listedfrom 7.4.0 through 7.4.2no fix listednot listednot listednot listed
debian debian_linux10.0no fix listed8.0no fix listed9.0no fix listednot listednot listednot listed
opensuse leap15.1no fix listednot listed
tenable tenable.scbefore 5.19.0fixed in 5.19.05.19.0

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources