CVE-2020-7063
MEDIUMIn 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.
CVSS Score
5.5
FIRST EPSS
1.6%
Observed Hosts
4,493
Published
2020-02-27
Remediation Guidance
Use different Phar class functions to compose the archive, such as addFile(), or reset file permissions upon extracting files from the archive.
Top Exposed Countries
- US605
- CN156
- TW73
- JP72
- ID64
- UA60
- BR55
- HK51
Top Exposed Ports
- 443 / tcp1,086
- 80 / tcp759
- 8080 / tcp227
- 53 / tcp92
- 8443 / tcp72
- 22 / tcp58
- 21 / tcp47
- 88 / tcp33
Observed Software
- Apache httpd991
- nginx483
- lighttpd119
- Microsoft IIS httpd65
- PowerDNS Authoritative Server26
- OpenSSH25