CVE-2018-1000888
Archive_Tar contains Potential RCE if filename starts with phar://
Also known as EDB-46108, GHSA-3q76-jq6m-573p
Mitigation
- Upgrade pear/archive_tar to 1.4.4 or later.
Who should check
- Projects that depend on Packagist package pear/archive_tar (< 1.4.4)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- pear/archive_tar < 1.4.4
- Fixed in
- 1.4.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.8 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 19.13% chance of exploitation in 30 days (percentile 98, 2026-11-26)
- CWE
- CWE-502
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist pear/archive_tar | < 1.4.4 | 1.4.4 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-1000888. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-1000888.md Affected: pear/archive_tar < 1.4.4 Fixed in: 1.4.4 Steps: 1. Search this machine and project for pear/archive_tar (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
Other
- https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html
- https://pear.php.net/package/Archive_Tar/download/
- https://pear.php.net/bugs/bug.php?id=23782
- https://github.com/FriendsOfPHP/security-advisories/blob/master/pear/archive_tar/CVE-2018-1000888.yaml
- https://github.com/pear/Archive_Tar
- https://usn.ubuntu.com/3857-1
- https://web.archive.org/web/20210328115328/https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It's-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf
- https://web.archive.org/web/20220524160841/https://blog.sonarsource.com/new-php-exploitation-technique?redirect=rips
FAQ
Is CVE-2018-1000888 being exploited?
There is no confirmed exploitation: CVE-2018-1000888 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 19.13% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-1000888?
High: CVSS 8.8 (v3.0, scored by NVD). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2018-1000888?
pear/archive_tar < 1.4.4.
Is there a fix for CVE-2018-1000888?
Yes. Fixed in 1.4.4. Upgrade pear/archive_tar to 1.4.4 or later.
How do I check if I'm affected by CVE-2018-1000888?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.