Description
In PHP before 5.6.30 and 7.x before 7.0.15, the PHAR archive handler could be used by attackers supplying malicious archive files to crash the PHP interpreter or potentially disclose information due to a buffer over-read in the phar_parse_pharfile function 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 7 | php5 | 5.4.45-0+deb7u9 | DLA-1034-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | php7.0 | 7.0.22-0ubuntu0.16.04.1 | USN-3382-1 |
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.22 | USN-3382-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | rh-php70-php +29 | 7.0.27-1.el6 | RHSA-2018:1296 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | php5 | 5.5.14-109.5.1 | SUSE-SU-2017:2317-1 |
| SLES 12 SP3 | php7 | 7.0.7-50.9.2 | SUSE-SU-2017:2303-1 |
| SLES 12 SP2 | php5 | 5.5.14-109.5.1 | SUSE-SU-2017:2317-1 |
| SLES 12 SP2 | php7 | 7.0.7-50.9.2 | SUSE-SU-2017:2303-1 |
| SLES 12 | php5 | 5.5.14-109.5.1 | SUSE-SU-2017:2317-1 |
| SLES 12 | php7 | 7.0.7-50.9.2 | SUSE-SU-2017:2303-1 |
| SLES 11 SP4 | php53 | 5.3.17-112.5.1 | SUSE-SU-2017:2522-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 11 SP4 | php53 | 5.3.17-112.5.1 | SUSE-SU-2017:2522-1 |
Advisories 7
- RHSA-2018:1296 Red Hat Security Advisory: rh-php70-php security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-3382-1 php5, php7.0 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-1034-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:2522-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:2303-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:2317-1 Security update for php5 SUSE / openSUSE Security Updates · May 2, 2025
- WID-SEC-2023-2718 PHP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 4, 2023
References
- http://openwall.com/lists/oss-security/2017/07/10/6
- https://www.tenable.com/security/tns-2017-12
- RHSA-2018:1296 vendor-advisory
- http://php.net/ChangeLog-5.php
- https://security.netapp.com/advisory/ntap-20180112-0001/
- http://php.net/ChangeLog-7.php
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=e5246580a85f031e1a3b8064edbaa55c1643a451
- 99607 vdb-entry
- https://bugs.php.net/bug.php?id=73773