Description
An issue was discovered in PHP before 5.6.33, 7.0.x before 7.0.27, 7.1.x before 7.1.13, and 7.2.x before 7.2.1. There is Reflected XSS on the PHAR 404 error page via the URI of a request for a .phar file.
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.27-0+deb9u1 | DSA-4080-1 |
| Debian 8 | php5 | 5.6.33+dfsg-0+deb8u1 | DSA-4081-1 |
| Debian 7 | php5 | 5.4.45-0+deb7u12 | DLA-1251-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | php7.0 | 7.0.28-0ubuntu0.16.04.1 | USN-3600-1 |
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.23 | USN-3600-1, USN-3566-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | php +24 | 5.4.16-48.el7 | RHSA-2020:1112 |
| RHEL 3 | rh-php70-php +29 | 7.0.27-1.el6 | RHSA-2018:1296 |
| RHEL 3 | rh-php71-php +27 | 7.1.30-1.el7 | RHSA-2019:2519 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | php5 | 5.5.14-109.17.1 | SUSE-SU-2018:0216-1 |
| SLES 12 SP3 | php7 | 7.0.7-50.26.1 | SUSE-SU-2018:0308-1 |
| SLES 12 SP2 | php5 | 5.5.14-109.17.1 | SUSE-SU-2018:0216-1 |
| SLES 12 SP2 | php7 | 7.0.7-50.26.1 | SUSE-SU-2018:0308-1 |
| SLES 12 | php5 | 5.5.14-109.17.1 | SUSE-SU-2018:0216-1 |
| SLES 12 | php7 | 7.0.7-50.26.1 | SUSE-SU-2018:0308-1 |
| SLES 11 SP4 | php53 | 5.3.17-112.20.1 | SUSE-SU-2018:0806-1 |
| SLES 11 SP3 | php53 | 5.3.17-112.20.1 | SUSE-SU-2018:0806-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 11 SP4 | php53 | 5.3.17-112.20.1 | SUSE-SU-2018:0806-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | php53 | 5.3.17-112.20.1 | SUSE-SU-2018:0806-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | php7 | 7.2.5-r0 | — |
| Alpine v3.14 | php7 | 7.2.5-r0 | — |
| Alpine v3.13 | php7 | 7.2.5-r0 | — |
| Alpine v3.12 | php7 | 7.2.5-r0 | — |
| Alpine v3.11 | php7 | 7.2.5-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.10 | php7 | 7.2.5-r0 | — |
| Alpine v3.9 | php7 | 7.2.5-r0 | — |
| Alpine v3.8 | php5 | 5.6.36-r0 | — |
| Alpine v3.8 | php7 | 7.2.5-r0 | — |
| Alpine v3.7 | php5 | 5.6.36-r0 | — |
| Alpine v3.7 | php7 | 7.1.29-r0 | — |
| Alpine v3.6 | php5 | 5.6.36-r0 | — |
| Alpine v3.6 | php7 | 7.1.17-r0 | — |
| Alpine v3.5 | php5 | 5.6.36-r0 | — |
| Alpine v3.5 | php7 | 7.0.30-r0 | — |
| Alpine v3.4 | php5 | 5.6.36-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | php +24 | 5.4.16-48.el7 | ELSA-2020-1112 |
Advisories 13
- RHSA-2020:1112 Red Hat Security Advisory: 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
- 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-3600-1 php5, php7.0, php7.1 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- USN-3566-1 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4080-1 php7.0 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-4081-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1251-1 php5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:0806-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0216-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0308-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0991 PHP: Schwachstelle ermöglicht Cross-Site Scripting BSI CERT-Bund (WID) · Dec 1, 2024
- ELSA-2020-1112 Moderate: php security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Apr 6, 2020
References
- USN-3600-1 vendor-advisory
- 1040363 vdb-entry
- 104020 vdb-entry
- RHSA-2018:1296 vendor-advisory
- http://php.net/ChangeLog-5.php
- USN-3566-1 vendor-advisory
- http://php.net/ChangeLog-7.php
- [debian-lts-announce] 20180120 [SECURITY] [DLA 1251-1] php5 security update mailing-list
- https://bugs.php.net/bug.php?id=74782
- 102742 vdb-entry
- USN-3600-2 vendor-advisory
- RHSA-2019:2519 vendor-advisory
- https://www.oracle.com/security-alerts/cpuapr2020.html