Description
Archive_Tar through 1.4.10 has :// filename sanitization only to address phar attacks, and thus any other stream-wrapper attack (such as file:// to overwrite files) can still succeed.
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 14 | php-pear | 1:1.10.9+submodules+notgz-1.1 | — |
| Debian 13 | php-pear | 1:1.10.9+submodules+notgz-1.1 | — |
| Debian 12 | php-pear | 1:1.10.9+submodules+notgz-1.1 | — |
| Debian 10 | php-pear | 1:1.10.6+submodules+notgz-1.1+deb10u1 | DSA-4817-1 |
| Debian 9 | drupal7 | 7.52-2+deb9u13 | DLA-2466-1 |
| Debian 9 | php-pear | 1:1.10.1+submodules+notgz-9+deb9u2 | DLA-2465-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | php-pear | 1:1.10.9+submodules+notgz-1ubuntu0.20.04.1 | USN-4654-1 |
| Ubuntu 18.04 LTS | php-pear | 1:1.10.5+submodules+notgz-1ubuntu1.18.04.2 | USN-4654-1 |
| Ubuntu 16.04 LTS | php-pear | 1:1.10.1+submodules+notgz-6ubuntu0.2 | USN-4654-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | drupal7 | 7.44-1ubuntu1~16.04.0+esm2 | USN-6981-1 |
| Ubuntu Pro 14.04 LTS | drupal7 | 7.26-1ubuntu0.1+esm2 | USN-6981-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6542 |
| RHEL 8 | libzip +2 | 1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6542 |
| RHEL 8 | php +25 | 7.4.19-4.module+el8.6.0+16316+906f6c6d | RHSA-2022:6542 |
| RHEL 8 | php-pear | 1:1.10.13-1.module+el8.6.0+16577+0788886f | RHSA-2022:6542 |
| RHEL 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6542 |
| RHEL 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6542 |
| RHEL 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6542 |
| RHEL 7 | php-pear | 1:1.9.4-23.el7_9 | RHSA-2022:7340 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.4 EUS | apcu-panel +2 | 5.1.18-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6541 |
| RHEL 8.4 EUS | libzip +2 | 1.6.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6541 |
| RHEL 8.4 EUS | php +25 | 7.4.6-5.module+el8.4.0+15727+276bb227 | RHSA-2022:6541 |
| RHEL 8.4 EUS | php-pear | 1:1.10.13-1.module+el8.4.0+16578+ed65e99e | RHSA-2022:6541 |
| RHEL 8.4 EUS | php-pecl-rrd | 2.0.1-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6541 |
| RHEL 8.4 EUS | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6541 |
| RHEL 8.4 EUS | php-pecl-zip | 1.18.2-1.module+el8.3.0+6678+b09f589e | RHSA-2022:6541 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | apcu-panel +2 | 5.1.18-1.module_el8.6.0+2750+78feabcb | ALSA-2022:6542 |
| AlmaLinux 8 | libzip +2 | 1.6.1-1.module_el8.6.0+2750+78feabcb | ALSA-2022:6542 |
| AlmaLinux 8 | php +25 | 7.4.19-4.module_el8.6.0+3238+624bf8b8 | ALSA-2022:6542 |
| AlmaLinux 8 | php-pear | 1:1.10.13-1.module_el8.6.0+3268+b150a051 | ALSA-2022:6542 |
| AlmaLinux 8 | php-pecl-rrd | 2.0.1-1.module_el8.6.0+2750+78feabcb | ALSA-2022:6542 |
| AlmaLinux 8 | php-pecl-xdebug | 2.9.5-1.module_el8.6.0+2750+78feabcb | ALSA-2022:6542 |
| AlmaLinux 8 | php-pecl-zip | 1.18.2-1.module_el8.6.0+2750+78feabcb | ALSA-2022:6542 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libzip | 1.6.1-1.module+el8.4.0+415+e936cba3 | RLSA-2022:6542 |
| Rocky Linux 8 | php | 7.4.19-4.module+el8.6.0+1006+0d5a469f | RLSA-2022:6542 |
| Rocky Linux 8 | php-pear | 1:1.10.13-1.module+el8.6.0+1006+0d5a469f | RLSA-2022:6542 |
| Rocky Linux 8 | php-pecl-apcu | 5.1.18-1.module+el8.4.0+415+e936cba3 | RLSA-2022:6542 |
| Rocky Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.4.0+414+2e7afcdd | RLSA-2022:6542 |
| Rocky Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.4.0+415+e936cba3 | RLSA-2022:6542 |
| Rocky Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.4.0+415+e936cba3 | RLSA-2022:6542 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.20 | drupal7 | 7.75-r0 | — |
| Alpine v3.19 | drupal7 | 7.75-r0 | — |
| Alpine v3.18 | drupal7 | 7.75-r0 | — |
| Alpine v3.17 | drupal7 | 7.75-r0 | — |
| Alpine v3.16 | drupal7 | 7.75-r0 | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | drupal7 | 7.75-r0 | — |
| Alpine v3.14 | drupal7 | 7.75-r0 | — |
| Alpine v3.13 | drupal7 | 7.75-r0 | — |
| Alpine v3.12 | drupal7 | 7.75-r0 | — |
| Alpine v3.11 | drupal7 | 7.75-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | php-pear | 1:1.10.12-4.amzn2.0.1 | ALAS2-2021-1584 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | apcu-panel +2 | 5.1.18-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-6542 |
| Oracle Linux 8 | libzip +2 | 1.6.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-6542 |
| Oracle Linux 8 | php +25 | 7.4.19-4.module+el8.6.0+20746+7a133c42 | ELSA-2022-6542 |
| Oracle Linux 8 | php-pear | 1:1.10.13-1.module+el8.6.0+20746+7a133c42 | ELSA-2022-6542 |
| Oracle Linux 8 | php-pecl-rrd | 2.0.1-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-6542 |
| Oracle Linux 8 | php-pecl-xdebug | 2.9.5-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-6542 |
| Oracle Linux 8 | php-pecl-zip | 1.18.2-1.module+el8.3.0+7685+72d70b58 | ELSA-2022-6542 |
| Oracle Linux 7 | php-pear | 1:1.9.4-23.el7_9 | ELSA-2022-7340 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
PEAR Archive_Tar 1.4.10 Arbitrary File Write
exploit/multi/fileformat/archive_tar_arb_file_write
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 16
- ALSA-2022:6542 Moderate: php:7.4 security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-6981-2 drupal7 vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-6981-1 drupal7 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DSA-4817-1 php-pear - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2465-1 php-pear - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2466-1 drupal7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-4654-1 php-pear vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2022:6542 Moderate: php:7.4 security update Rocky Linux Security Advisories · Feb 4, 2026
- FSA-202302 Festo: Several vulnerabilities in FactoryViews CERT@VDE · Feb 2, 2026
- RHSA-2022:7340 Red Hat Security Advisory: php-pear security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2022:6542 Red Hat Security Advisory: php:7.4 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2022:6541 Red Hat Security Advisory: php:7.4 security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- WID-SEC-2022-1443 Drupal: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · Sep 3, 2024
- ELSA-2022-7340 Moderate: php-pear security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 3, 2022
- ELSA-2022-6542 Moderate: php:7.4 security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Sep 16, 2022
- ALAS2-2021-1584 Moderate: php-pear security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jan 6, 2021
References
- https://github.com/pear/Archive_Tar/issues/33
- https://www.drupal.org/sa-core-2020-013
- [debian-lts-announce] 20201127 [SECURITY] [DLA 2466-1] drupal7 security update mailing-list
- FEDORA-2020-f351eb14e3 vendor-advisory
- FEDORA-2020-5271a896ff vendor-advisory
- FEDORA-2020-6f1079934c vendor-advisory
- FEDORA-2020-d50d74d6f2 vendor-advisory
- DSA-4817 vendor-advisory
- http://packetstormsecurity.com/files/161095/PEAR-Archive_Tar-Arbitrary-File-Write.html
- GLSA-202101-23 vendor-advisory
- FEDORA-2021-8093e197f4 vendor-advisory
- FEDORA-2021-0c013f520c vendor-advisory