Files added to tar with Phar::buildFromIterator have all-access permissions
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| PHP Group | PHP | affected |
|
Configuration 1 [-]
|
Configuration 2 [-]
|
Configuration 3 [-]
|
Configuration 4 [-]
|
| Package | CPE | Advisory | Released Date |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | |||
| php:7.3-8020020200715124551.ceb1cf90 | cpe:/a:redhat:enterprise_linux:8 | RHSA-2020:3662 | 2020-09-08T00:00:00Z |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | |||
| rh-php73-php-0:7.3.20-1.el7 | cpe:/a:redhat:rhel_software_collections:3::el7 | RHSA-2020:5275 | 2020-12-01T00:00:00Z |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | |||
| rh-php73-php-0:7.3.20-1.el7 | cpe:/a:redhat:rhel_software_collections:3::el7 | RHSA-2020:5275 | 2020-12-01T00:00:00Z |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUS | |||
| rh-php73-php-0:7.3.20-1.el7 | cpe:/a:redhat:rhel_software_collections:3::el7 | RHSA-2020:5275 | 2020-12-01T00:00:00Z |
No data available yet.
Vendor Workaround
Use different Phar class functions to compose the archive, such as addFile(), or reset file permissions upon extracting files from the archive.
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-2160-1 | php5 security update |
Debian DSA |
DSA-4717-1 | php7.0 security update |
Debian DSA |
DSA-4719-1 | php7.3 security update |
EUVD |
EUVD-2020-28197 | 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. |
Ubuntu USN |
USN-4330-1 | PHP vulnerabilities |
No CVSS v4.0
No CVSS v3.0
This CVE is not in the KEV list.
Exploit prediction score: 1.6% (1.594% probability within 30 days)
Key SSVC decision points have not yet been added.
No history.