CVE-2018-1000888
Archive_Tar contains Potential RCE if filename starts with phar://
Reported by mitre · Published December 27, 2018
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| pear | archive_tar | 0 |
| amazon:2 | php-pear | 0 |
| alpine | drupal7 | 0 |
Timeline
- Dec 27, 2018 CVE Published
- Jan 10, 2019 PoC Published
- Mar 5, 2019 CVE Updated
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (2 in total, the first dated here)
- Mar 6, 2026 Security Advisory (4 in total, the first dated here)
- Sep 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-1000888
vulnetix vdb fixes CVE-2018-1000888
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-1000888/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20190212 [SECURITY] [DLA 1674-1] php5 security update mailing-listx_refsource_MLIST
- USN-3857-1 vendor-advisoryx_refsource_UBUNTU
- DSA-4378 vendor-advisoryx_refsource_DEBIAN
- 46108 exploitx_refsource_EXPLOIT-DB
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- GLSA-202006-14 vendor-advisoryx_refsource_GENTOO