CVE-2018-1000888: High severity PHP Pear Archive Tar vulnerability

Published Dec 20, 2018
·
Updated

Last updated 25 August 2025

Other sources

PEAR ArchiveTar version 1.4.3 and earlier contains a CWE-502, CWE-915 vulnerability in the ArchiveTar class. There are several file operations with $vheader['filename'] as parameter (such as fileexists, isfile, isdir, etc). When extract is called without a specific prefix path, we can trigger unserialization by crafting a tar file with phar://[pathtomaliciouspharfile] as path. Object injection can be used to trigger destruct in the loaded PHP classes, e.g. the ArchiveTar class itself. With ArchiveTar object injection, arbitrary file deletion can occur because @unlink($this->temptarname) 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.

Launchpad

Potential RCE if filename starts with phar://

Affected Software

9 affected componentsFixes available
composer/pear/archive_tar<1.4.4
debian/php-pear<=1:1.10.6+submodules+notgz-1, <=1:1.10.1+submodules+notgz-9
1:1.10.6+submodules+notgz-1.11:1.10.1+submodules+notgz-9+deb9u1
PHP Pear Archive Tar<=1.4.3
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=18.10
Debian Debian Linux=8.0
Debian Debian Linux=9.0
debian/php-pear
1:1.10.12+submodules+notgz+20210212-11:1.10.13+submodules+notgz+2022032202-21:1.10.16+submodules+notgz-3

Event History

Dec 20, 2018
Advisory Published
07:11 PM
Dec 27, 2018
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Dec 28, 2018
Data Sourced
via NVD·04:29 PM
DescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:45 PM
Description
Feb 20, 2026
Data Sourced
via Ubuntu·03:44 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·03:45 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-1000888?

CVE-2018-1000888 is classified as a CWE-502 and CWE-915 vulnerability, indicating it poses a significant risk due to improper file handling.

2

How do I fix CVE-2018-1000888?

To mitigate CVE-2018-1000888, upgrade PEAR Archive_Tar to version 1.4.4 or later.

3

Which versions of Archive_Tar are affected by CVE-2018-1000888?

CVE-2018-1000888 affects PEAR Archive_Tar version 1.4.3 and earlier.

4

Is my system vulnerable to CVE-2018-1000888?

If you are using PEAR Archive_Tar version 1.4.3 or earlier, your system is vulnerable to CVE-2018-1000888.

5

What is the impact of exploiting CVE-2018-1000888?

Exploiting CVE-2018-1000888 could allow an attacker to manipulate file operations leading to unauthorized file access or denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203