CVEfocus › CVE database › CVE-2018-1000888

CVE-2018-1000888

CVSS 8.8 HighEPSS 19.1% (higher than 98% of CVEs)Published 2018-12-27Updated 2024-08-05Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian, Packagist, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

19Fixed
3Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04php-pearFixed1:1.10.5+submodules+notgz-1ubuntu1.18.04.1UBUNTU-CVE-2018-1000888
Ubuntu 16.04php-pearFixed1:1.10.1+submodules+notgz-6ubuntu0.1UBUNTU-CVE-2018-1000888
Debian 14php-pearFixed1:1.10.6+submodules+notgz-1.1DEBIAN-CVE-2018-1000888
Debian 13php-pearFixed1:1.10.6+submodules+notgz-1.1DEBIAN-CVE-2018-1000888
Debian 12php-pearFixed1:1.10.6+submodules+notgz-1.1DEBIAN-CVE-2018-1000888
Red Hat Enterprise Linux 8php-pearWill not fix
Will not fix
Red Hat Enterprise Linux 7php-pearWill not fix
Will not fix
Red Hat Enterprise Linux 6php-pearWill not fix
Will not fix
Red Hat Enterprise Linux 5php-pearNot affected
Alpine Linux 3.20drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.19drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.18drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.17drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.16drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.15drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.14drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.13drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.12drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.11drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.10drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.9drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Alpine Linux 3.8drupal7Fixed7.62-r0ALPINE-CVE-2018-1000888
Packagist librarypear/archive_tarFixed1.4.4GHSA-3q76-jq6m-573p

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.