Skip to content
OpenAdvisories
Medium · 5.5 CVE-2020-7063 EUVD-2020-28197GHSA-rm3c-r6h9-r9rg

Files added to tar with Phar::buildFromIterator have all-access permissions

Published Feb 27, 2020 · Updated Sep 16, 2024 · Assigned by php

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.

Affected products

VendorProductAffectedFixed
PHP Group PHP 7.3.x – < 7.3.15, 7.4.x – < 7.4.3, 7.2.x – < 7.2.28 7.3.15

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 php7.4 7.4.3-1 —
Debian 10 php7.3 7.3.19-1~deb10u1 DSA-4719-1
Debian 9 php7.0 7.0.33-0+deb9u8 DSA-4717-1
Debian 8 php5 5.6.40+dfsg-0+deb8u10 DLA-2160-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS php7.2 7.2.24-0ubuntu0.18.04.4 USN-4330-1
Ubuntu 16.04 LTS php7.0 7.0.33-0ubuntu0.16.04.14 USN-4330-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS php5 5.5.9+dfsg-1ubuntu4.29+esm11 USN-4330-1
ReleasePackageFixed inAdvisory
RHEL 8 apcu-panel +2 5.1.17-1.module+el8.1.0+3189+a1bff096 RHSA-2020:3662
RHEL 8 libzip +2 1.5.2-1.module+el8.1.0+3189+a1bff096 RHSA-2020:3662
RHEL 8 php +25 7.3.20-1.module+el8.2.0+7373+b272fdef RHSA-2020:3662
RHEL 8 php-pear 1:1.10.9-1.module+el8.1.0+3189+a1bff096 RHSA-2020:3662
RHEL 8 php-pecl-rrd 2.0.1-1.module+el8.2.0+4968+1d5097db RHSA-2020:3662
RHEL 8 php-pecl-xdebug 2.8.0-1.module+el8.2.0+4968+1d5097db RHSA-2020:3662
RHEL 8 php-pecl-zip 1.15.4-1.module+el8.1.0+3189+a1bff096 RHSA-2020:3662
RHEL 3 rh-php73-php +27 7.3.20-1.el7 RHSA-2020:5275

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 apcu-panel +2 5.1.17-1.module_el8.3.0+2009+b272fdef ALSA-2020:3662
AlmaLinux 8 libzip +2 1.5.2-1.module_el8.3.0+2009+b272fdef ALSA-2020:3662
AlmaLinux 8 php +25 7.3.20-1.module_el8.3.0+2009+b272fdef ALSA-2020:3662
AlmaLinux 8 php-pear 1:1.10.9-1.module_el8.3.0+2009+b272fdef ALSA-2020:3662
AlmaLinux 8 php-pecl-rrd 2.0.1-1.module_el8.3.0+2009+b272fdef ALSA-2020:3662
AlmaLinux 8 php-pecl-xdebug 2.8.0-1.module_el8.3.0+2009+b272fdef ALSA-2020:3662
AlmaLinux 8 php-pecl-zip 1.15.4-1.module_el8.3.0+2009+b272fdef ALSA-2020:3662

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libzip 1.5.2-1.module+el8.4.0+414+2e7afcdd RLSA-2020:3662
Rocky Linux 8 php 7.3.20-1.module+el8.4.0+414+2e7afcdd RLSA-2020:3662
Rocky Linux 8 php-pear 1:1.10.9-1.module+el8.4.0+414+2e7afcdd RLSA-2020:3662
Rocky Linux 8 php-pecl-apcu 5.1.17-1.module+el8.4.0+414+2e7afcdd RLSA-2020:3662
Rocky Linux 8 php-pecl-rrd 2.0.1-1.module+el8.4.0+414+2e7afcdd RLSA-2020:3662
Rocky Linux 8 php-pecl-xdebug 2.8.0-1.module+el8.4.0+414+2e7afcdd RLSA-2020:3662
Rocky Linux 8 php-pecl-zip 1.15.4-1.module+el8.4.0+414+2e7afcdd RLSA-2020:3662
ReleasePackageFixed inAdvisory
SLES 15 SP1 php7 7.2.5-4.52.4 SUSE-SU-2022:4067-1, SUSE-SU-2020:0622-1
SLES 15 php7 7.2.5-4.52.4 SUSE-SU-2022:4067-1, SUSE-SU-2020:0622-1
SLES 12 SP5 php72 7.2.5-1.40.1 SUSE-SU-2020:0647-1
SLES 12 SP4 php5 5.5.14-109.71.1 SUSE-SU-2020:0658-1
SLES 12 SP4 php72 7.2.5-1.40.1 SUSE-SU-2020:0647-1
SLES 12 php5 5.5.14-109.71.1 SUSE-SU-2020:0658-1
SLES 12 php72 7.2.5-1.40.1 SUSE-SU-2020:0647-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLES for SAP 15 php7 7.2.5-4.52.4 SUSE-SU-2022:4067-1, SUSE-SU-2020:0622-1
SLE HPC 15 SP1 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
SLE HPC 15 php7 7.2.5-4.52.4 SUSE-SU-2022:4067-1, SUSE-SU-2020:0622-1
SUSE Enterprise Storage 6 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php7 7.4.24-1.1 openSUSE-SU-2024:11167-1
openSUSE Tumbleweed php8 8.0.11-1.1 openSUSE-SU-2024:11169-1
openSUSE Leap 15.4 php7 7.2.34-150000.4.103.1 SUSE-SU-2022:4067-1
openSUSE Leap 15.1 php7 +1 7.2.5-lp151.6.22.1 openSUSE-SU-2020:0341-1
ReleasePackageFixed inAdvisory
Alpine v3.15 php7 7.3.15-r0 —
Alpine v3.14 php7 7.3.15-r0 —
Alpine v3.13 php7 7.3.15-r0 —
Alpine v3.12 php7 7.3.15-r0 —
Alpine v3.11 php7 7.3.15-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.9 php7 7.2.31-r0 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 apcu-panel +2 5.1.17-1.module+el8.2.0+5569+98c8b30d ELSA-2020-3662
Oracle Linux 8 libzip +2 1.5.2-1.module+el8.2.0+5569+98c8b30d ELSA-2020-3662
Oracle Linux 8 php +25 7.3.20-1.module+el8.2.0+7784+4033621d ELSA-2020-3662
Oracle Linux 8 php-pear 1:1.10.9-1.module+el8.2.0+5569+98c8b30d ELSA-2020-3662
Oracle Linux 8 php-pecl-rrd 2.0.1-1.module+el8.2.0+5569+98c8b30d ELSA-2020-3662
Oracle Linux 8 php-pecl-xdebug 2.8.0-1.module+el8.2.0+5569+98c8b30d ELSA-2020-3662
Oracle Linux 8 php-pecl-zip 1.15.4-1.module+el8.2.0+5569+98c8b30d ELSA-2020-3662

Advisories 19

References