Description
In PHP before 5.6.39, 7.x before 7.0.33, 7.1.x before 7.1.25, and 7.2.x before 7.2.13, a buffer over-read in PHAR reading functions may allow an attacker to read allocated or unallocated memory past the actual data when trying to parse a .phar file. This is related to phar_parse_pharfile in ext/phar/phar.c.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | php7.0 | 7.0.33-0+deb9u1 | DSA-4353-1 |
| Debian 8 | php5 | 5.6.39+dfsg-0+deb8u1 | DLA-1608-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php7.2 | 7.2.15-0ubuntu0.18.04.1 | — |
| Ubuntu 16.04 LTS | php7.0 | 7.0.33-0ubuntu0.16.04.1 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.29+esm2 | USN-3566-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | apcu-panel +2 | 5.1.12-2.module+el8.1.0+3202+af5476b9 | RHSA-2020:1624 |
| RHEL 8 | libzip +2 | 1.5.1-2.module+el8.1.0+3202+af5476b9 | RHSA-2020:1624 |
| RHEL 8 | php +25 | 7.2.24-1.module+el8.2.0+4601+7c76a223 | RHSA-2020:1624 |
| RHEL 8 | php-pear | 1:1.10.5-9.module+el8.1.0+3202+af5476b9 | RHSA-2020:1624 |
| RHEL 8 | php-pecl-zip | 1.15.3-1.module+el8.1.0+3186+20164e6f | RHSA-2020:1624 |
| RHEL 3 | rh-php71-php +27 | 7.1.30-1.el7 | RHSA-2019:2519 |
| RHEL 3 | rh-php72-php +27 | 7.2.24-1.el7 | RHSA-2019:3299 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | apcu-panel +2 | 5.1.12-2.module_el8.3.0+2010+7c76a223 | ALSA-2020:1624 |
| AlmaLinux 8 | libzip +2 | 1.5.1-2.module_el8.3.0+2010+7c76a223 | ALSA-2020:1624 |
| AlmaLinux 8 | php +25 | 7.2.24-1.module_el8.3.0+2010+7c76a223 | ALSA-2020:1624 |
| AlmaLinux 8 | php-pear | 1:1.10.5-9.module_el8.3.0+2010+7c76a223 | ALSA-2020:1624 |
| AlmaLinux 8 | php-pecl-zip | 1.15.3-1.module_el8.3.0+2010+7c76a223 | ALSA-2020:1624 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libzip | 1.5.1-2.module+el8.4.0+413+c9202dda | RLSA-2020:1624 |
| Rocky Linux 8 | php | 7.2.24-1.module+el8.4.0+413+c9202dda | RLSA-2020:1624 |
| Rocky Linux 8 | php-pear | 1:1.10.5-9.module+el8.4.0+413+c9202dda | RLSA-2020:1624 |
| Rocky Linux 8 | php-pecl-apcu | 5.1.12-2.module+el8.4.0+413+c9202dda | RLSA-2020:1624 |
| Rocky Linux 8 | php-pecl-zip | 1.15.3-1.module+el8.4.0+413+c9202dda | RLSA-2020:1624 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | php7 | 7.2.34-150000.4.103.1 | SUSE-SU-2022:4067-1 |
| SLES 15 | php7 | 7.2.5-4.32.1 | SUSE-SU-2022:4067-1, SUSE-SU-2019:1461-1 |
| SLES 12 SP4 | libmemcached | 1.0.18-3.2.1 | SUSE-RU-2019:0823-1 |
| SLES 12 SP4 | php5 | 5.5.14-109.51.6 | SUSE-SU-2019:0985-1 |
| SLES 12 SP4 | php72 | 7.2.5-1.7.1 | SUSE-RU-2019:0823-1 |
| SLES 12 SP4 | tidy | 1.0.20100204cvs-26.2.1 | SUSE-RU-2019:0823-1 |
| SLES 12 SP3 | libmemcached | 1.0.18-3.2.1 | SUSE-RU-2019:0823-1 |
| SLES 12 SP3 | php5 | 5.5.14-109.51.6 | SUSE-SU-2019:0985-1 |
| SLES 12 SP3 | php72 | 7.2.5-1.7.1 | SUSE-RU-2019:0823-1 |
| SLES 12 SP3 | tidy | 1.0.20100204cvs-26.2.1 | SUSE-RU-2019:0823-1 |
| SLES 12 | libmemcached | 1.0.18-3.2.1 | SUSE-RU-2019:0823-1 |
| SLES 12 | php5 | 5.5.14-109.51.6 | SUSE-SU-2019:0985-1 |
| SLES 12 | php72 | 7.2.5-1.7.1 | SUSE-RU-2019:0823-1 |
| SLES 12 | php72-memcached | 3.1.3-1.3.1 | SUSE-RU-2019:0823-1 |
| SLES 12 | tidy | 1.0.20100204cvs-26.2.1 | SUSE-RU-2019:0823-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 11 SP4 | php53 | 5.3.17-112.58.1 | SUSE-SU-2019:14013-1 |
| 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.34-150000.4.103.1 | SUSE-SU-2022:4067-1 |
| SLES for SAP 12 SP4 | libmemcached | 1.0.18-3.2.1 | SUSE-RU-2019:0823-1 |
| SLES for SAP 12 SP3 | libmemcached | 1.0.18-3.2.1 | SUSE-RU-2019:0823-1 |
| SLES for SAP 11 SP4 | php53 | 5.3.17-112.58.1 | SUSE-SU-2019:14013-1 |
| SLE HPC 15 SP1 | php7 | 7.2.34-150000.4.103.1 | SUSE-SU-2022:4067-1 |
| SLE HPC 15 | php7 | 7.2.34-150000.4.103.1 | SUSE-SU-2022:4067-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | php53 | 5.3.17-112.58.1 | SUSE-SU-2019:14013-1 |
| SUSE Enterprise Storage 6 | php7 | 7.2.34-150000.4.103.1 | SUSE-SU-2022:4067-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | 7.2.5-lp151.6.3.1 | openSUSE-SU-2019:1572-1 |
| openSUSE Leap 15.0 | php7 | 7.2.5-lp150.2.19.1 | openSUSE-SU-2019:1573-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | php7 | 7.2.13-r0 | — |
| Alpine v3.14 | php7 | 7.2.13-r0 | — |
| Alpine v3.13 | php7 | 7.2.13-r0 | — |
| Alpine v3.12 | php7 | 7.2.13-r0 | — |
| Alpine v3.11 | php7 | 7.2.13-r0 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.10 | php7 | 7.2.13-r0 | — |
| Alpine v3.9 | php7 | 7.2.13-r0 | — |
| Alpine v3.8 | php7 | 7.2.13-r0 | — |
| Alpine v3.7 | php7 | 7.1.29-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | apcu-panel +2 | 5.1.12-2.module+el8.2.0+5510+6771133c | ELSA-2020-1624 |
| Oracle Linux 8 | libzip +2 | 1.5.1-2.module+el8.2.0+5510+6771133c | ELSA-2020-1624 |
| Oracle Linux 8 | php +25 | 7.2.24-1.module+el8.2.0+5510+6771133c | ELSA-2020-1624 |
| Oracle Linux 8 | php-pear | 1:1.10.5-9.module+el8.2.0+5510+6771133c | ELSA-2020-1624 |
| Oracle Linux 8 | php-pecl-zip | 1.15.3-1.module+el8.2.0+5510+6771133c | ELSA-2020-1624 |
Advisories 18
- ALSA-2020:1624 Moderate: php:7.2 security, bug fix, and enhancement update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2020:1624 Red Hat Security Advisory: php:7.2 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2019:3299 Red Hat Security Advisory: rh-php72-php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2019:2519 Red Hat Security Advisory: rh-php71-php security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-3566-2 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4353-1 php7.0 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1608-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2020:1624 Moderate: php:7.2 security, bug fix, and enhancement update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2022:4067-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11167-1 php7-7.4.24-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:0985-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:14013-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11169-1 php8-8.0.11-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:1572-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:1461-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:1573-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-RU-2019:0823-1 Optional update for php72 SUSE / openSUSE Security Updates · May 2, 2025
- ELSA-2020-1624 Moderate: php:7.2 security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 5, 2020
References
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- https://bugs.php.net/bug.php?id=77143
- openSUSE-SU-2019:1256 vendor-advisory
- openSUSE-SU-2019:1293 vendor-advisory
- USN-3566-2 vendor-advisory
- openSUSE-SU-2019:1572 vendor-advisory
- openSUSE-SU-2019:1573 vendor-advisory
- RHSA-2019:2519 vendor-advisory
- RHSA-2019:3299 vendor-advisory