# CVE-2018-1000888: Archive\_Tar contains Potential RCE if filename starts with phar://

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 19.13% (percentile 98, 2026-11-26)
- **CWE:** CWE-502
- **Aliases:** EDB-46108, GHSA-3q76-jq6m-573p
- **Published:** 2018-12-27T18:00:00.000Z
- **Modified:** 2026-06-17T01:33:15.920Z

## Who should check

- Projects that depend on Packagist package pear/archive\_tar (\< 1.4.4)
- Anyone running n/a (versions: see the vendor advisory)

## 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

- Packagist `pear/archive_tar`: affected \< 1.4.4; fixed 1.4.4 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade pear/archive\_tar to 1.4.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://usn.ubuntu.com/3857-1/>
- vendor: <https://www.debian.org/security/2019/dsa-4378>
- vendor: <https://security.gentoo.org/glsa/202006-14>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-1000888>
- patch: <https://github.com/pear/Archive_Tar/commit/59ace120ac5ceb5f0d36e40e48e1884de1badf76>
- exploit: <https://www.exploit-db.com/exploits/46108/>
- exploit: <https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf>
- exploit: <https://blog.ripstech.com/2018/new-php-exploitation-technique/>
- exploit: <https://www.exploit-db.com/exploits/46108>
- other: <https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html>
- other: <https://pear.php.net/package/Archive_Tar/download/>
- other: <https://pear.php.net/bugs/bug.php?id=23782>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/pear/archive_tar/CVE-2018-1000888.yaml>
- other: <https://github.com/pear/Archive_Tar>
- other: <https://usn.ubuntu.com/3857-1>
- other: <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>
- other: <https://web.archive.org/web/20220524160841/https://blog.sonarsource.com/new-php-exploitation-technique?redirect=rips>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-1000888>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3q76-jq6m-573p> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/46108>

HTML: <https://flawdb.com/CVE-2018-1000888> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-1000888>
