CVE-2020-7063

MEDIUMCVSS 5.3/10EPSS 1.60%

Last modified

CVE-2020-7063 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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.. EPSS estimates a 1.60% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
5.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

EPSS Probability
1.60%

72.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 7.2.0, <= 7.2.27
PhpPhp>= 7.3.0, <= 7.3.14
PhpPhp>= 7.4.0, <= 7.4.2
TenableTenable.Sc< 5.19.0
DebianDebian Linux8.0
DebianDebian Linux9.0
DebianDebian Linux10.0
OpensuseLeap15.1

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2020-7063?
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.
How severe is CVE-2020-7063?
CVE-2020-7063 has a CVSS score of 5.3/10 (MEDIUM severity). The EPSS model estimates a 1.60% probability of exploitation in the next 30 days.
How do I fix CVE-2020-7063?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2020-7063?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST