PEAR Archive_Tar version 1.4.3 and earlier contains a CWE-502, CWE-915 vulnerability in the Archive_Tar class. There are several file operations with `$v_header['filename']` as parameter (such as file_exists, is_file, is_dir, etc). When extract is called without a specific prefix path, we can trigger unserialization by crafting a tar file with `phar://[path_to_malicious_phar_file]` as path. Object injection can be used to trigger destruct in the loaded PHP classes, e.g. the Archive_Tar class itself. With Archive_Tar object injection, arbitrary file deletion can occur because `@unlink($this->_temp_tarname)` is called. If another class with useful gadget is loaded, it may possible to cause remote code execution that can result in files being deleted or possibly modified. This vulnerability appears to have been fixed in 1.4.4.
CVSS Details
- CVSS 3.1 Base Score: 8.8
- CVSS 3.0 Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade drupal7 | Aug 22, 2024 | Dec 27, 2018 |
| Amazon Linux Ami 2 | — | Upgrade php-pear | Apr 27, 2020 | Dec 28, 2018 |
| Debian | — | Upgrade php-pear | Jan 31, 2019 | Dec 28, 2018 |
| Drupal | — | Upgrade to drupal version 7.62Upgrade to drupal version 8.5.9Upgrade to drupal version 8.6.6 | Apr 4, 2019 | Dec 28, 2018 |
| Gentoo Linux | — | Upgrade dev-php/PEAR-Archive_Tar. | Jun 16, 2020 | Dec 28, 2018 |
| Huawei Euleros 2_0_sp2 | — | Upgrade php-pear | Apr 2, 2019 | Dec 28, 2018 |
| Huawei Euleros 2_0_sp5 | — | Upgrade php-pear | Apr 3, 2019 | Dec 28, 2018 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Dec 28, 2018 |
| Suse | — | Upgrade php7-sysvsemUpgrade php7-pcntlUpgrade php7-snmpUpgrade php7-bcmathUpgrade php7-mbstringUpgrade php7-intlUpgrade php7-zlibUpgrade php7-opcacheUpgrade php7-sysvshmUpgrade php7-opensslUpgrade php7-iconvUpgrade php7-xmlwriterUpgrade php7-pharUpgrade php7-calendarUpgrade php7-enchantUpgrade php7-ctypeUpgrade php7-fastcgiUpgrade php7-fileinfoUpgrade php7-curlUpgrade php7-ftpUpgrade php7-tokenizerUpgrade php7-zipUpgrade php7-bz2Upgrade php7-gdUpgrade php7-sodiumUpgrade php7Upgrade php7-develUpgrade php7-jsonUpgrade php7-embedUpgrade apache2-mod_php7Upgrade php7-pdoUpgrade php7-odbcUpgrade php7-pgsqlUpgrade php7-sqliteUpgrade php7-gmpUpgrade php7-readlineUpgrade php7-sysvmsgUpgrade php7-xslUpgrade php7-posixUpgrade php7-gettextUpgrade php7-fpmUpgrade php7-exifUpgrade php7-shmopUpgrade php7-xmlrpcUpgrade php7-xmlreaderUpgrade php7-tidyUpgrade php7-socketsUpgrade php7-mysqlUpgrade php7-soapUpgrade php7-ldapUpgrade php7-dbaUpgrade php7-dom | Feb 4, 2022 | Dec 28, 2018 |
| Ubuntu | — | Upgrade php-pear | Jan 23, 2019 | Dec 28, 2018 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub