CVE-2018-1000888
mediumpriority · attend · 52EPSS 0.191 · 97 %ileexploit · PoCEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- EDB-46108PEAR Archive_Tar < 1.4.4 - PHP Object InjectionPoC · exploit_db
affected products (12)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-3q76-jq6m-573pArchive_Tar contains Potential RCE if filename starts with phar://2023-07-07ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (31)
External citations — patches, advisories, analysis.
- https://blog.ripstech.com/2018/new-php-exploitation-technique/cnnvd
- https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdfcnnvd
- https://lists.debian.org/debian-lts-announce/2019/02/msg00020.htmlcnnvd
- https://lists.debian.org/debian-lts-announce/2019/02/msg00032.htmlcnnvd
- https://packetstormsecurity.com/files/158086/Gentoo-Linux-Security-Advisory-202006-14.htmlcnnvd
- https://pear.php.net/bugs/bug.php?id=23782cnnvd
- https://pear.php.net/package/Archive_Tar/download/cnnvd
- https://security.gentoo.org/glsa/202006-14cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan