CVE-2018-1000888

Summary

CVECVE-2018-1000888
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-12-28 16:29:00 UTC
Updated2020-06-15 18:15:00 UTC
DescriptionPEAR 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.

Risk And Classification

Problem Types: CWE-502

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 18.10 All All All
Operating System Canonical Ubuntu Linux 16.04 All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 18.10 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Operating System Debian Debian Linux 8.0 All All All
Operating System Debian Debian Linux 9.0 All All All
Application Php Pear Archive Tar All All All All

References

ReferenceSourceLinkTags
Bug #23782 :: Prevent phar:// files from being extracted CONFIRM pear.php.net Broken Link, Third Party Advisory
New PHP Exploitation Technique Added MISC blog.ripstech.com Exploit, Third Party Advisory
PEAR Archive_Tar < 1.4.4 - PHP Object Injection - PHP webapps Exploit EXPLOIT-DB www.exploit-db.com Exploit, Third Party Advisory, VDB Entry
USN-3857-1: PEAR vulnerability | Ubuntu security notices UBUNTU usn.ubuntu.com Third Party Advisory
Archive_Tar CONFIRM pear.php.net Broken Link, Third Party Advisory
cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulne... MISC cdn2.hubspot.net Exploit, Technical Description, Third Party Advisory
Debian -- Security Information -- DSA-4378-1 php-pear DEBIAN www.debian.org Third Party Advisory
PEAR Archive_Tar: Remote code execution vulnerability (GLSA 202006-14) — Gentoo security GENTOO security.gentoo.org
[SECURITY] [DLA 1674-1] php5 security update MLIST lists.debian.org Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 500872 Alpine Linux Security Update for drupal7
  • 504696 Alpine Linux Security Update for drupal7
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report