PT-2020-5321 · Php+7 · Php+7
Published
2020-02-17
·
Updated
2025-08-11
·
CVE-2020-7063
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
PHP versions 7.2.x through 7.2.27
PHP versions 7.3.x through 7.3.14
PHP versions 7.4.x through 7.4.2
Description
The issue is related to the incorrect preservation of permissions when creating PHAR archives using the
PharData::buildFromIterator() function. This may result in files having more lax permissions than intended when the archive is extracted. The problem can be exploited by a remote attacker to impact data integrity.Recommendations
For PHP versions 7.2.x through 7.2.27, update to version 7.2.28 or later.
For PHP versions 7.3.x through 7.3.14, update to version 7.3.15 or later.
For PHP versions 7.4.x through 7.4.2, update to version 7.4.3 or later.
Exploit
Fix
Improper Preservation of Permissions
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Php
Red Hat
Rocky Linux
Suse
Ubuntu