Description
An issue was discovered in PHP 7.x before 7.1.27 and 7.3.x before 7.3.3. phar_tar_writeheaders_int in ext/phar/tar.c has a buffer overflow via a long link value. NOTE: The vendor indicates that the link value is used only when an archive contains a symlink, which currently cannot happen: "This issue allows theoretical compromise of security, but a practical attack is usually impossible.
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+deb9u3 | DSA-4403-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | php7.2 | 7.2.15-0ubuntu0.18.04.2 | — |
| Ubuntu 16.04 LTS | php7.0 | 7.0.33-0ubuntu0.16.04.3 | — |
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.29 | USN-3922-2 |
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 | php5 | 5.5.14-109.58.1 | SUSE-SU-2019:1325-1 |
| SLES 12 SP4 | php72 | 7.2.5-1.10.1 | SUSE-SU-2019:0988-1 |
| SLES 12 SP3 | php5 | 5.5.14-109.58.1 | SUSE-SU-2019:1325-1 |
| SLES 12 SP3 | php72 | 7.2.5-1.10.1 | SUSE-SU-2019:0988-1 |
| SLES 12 | php5 | 5.5.14-109.58.1 | SUSE-SU-2019:1325-1 |
| SLES 12 | php72 | 7.2.5-1.10.1 | SUSE-SU-2019:0988-1 |
Show 8 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 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 |
Advisories 11
- USN-3922-2 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4403-1 php7.0 - security update Debian Security (DSA / DLA) · Mar 9, 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:14013-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:1325-1 Security update for php5 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
- SUSE-SU-2019:0988-1 Security update for php72 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:1573-1 Security update for php7 SUSE / openSUSE Security Updates · Feb 4, 2026
References
- http://php.net/ChangeLog-7.php
- https://bugs.php.net/bug.php?id=77586
- USN-3922-2 vendor-advisory
- USN-3922-3 vendor-advisory
- openSUSE-SU-2019:1293 vendor-advisory
- openSUSE-SU-2019:1503 vendor-advisory
- openSUSE-SU-2019:1572 vendor-advisory
- openSUSE-SU-2019:1573 vendor-advisory