CVE-2018-1000888

NameCVE-2018-1000888
DescriptionPEAR 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-1674-1, DSA-4378-1
NVD severitymedium (attack range: remote)
Debian Bugs919147

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-pear (PTS)stretch (security), stretch1:1.10.1+submodules+notgz-9+deb9u1fixed
buster, sid1:1.10.6+submodules+notgz-1.1fixed
php5 (PTS)jessie5.6.33+dfsg-0+deb8u1vulnerable
jessie (security)5.6.40+dfsg-0+deb8u1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-pearsource(unstable)1:1.10.6+submodules+notgz-1.1medium919147
php-pearsourcestretch1:1.10.1+submodules+notgz-9+deb9u1mediumDSA-4378-1
php5source(unstable)(unfixed)medium
php5sourcejessie5.6.39+dfsg-0+deb8u2mediumDLA-1674-1

Notes

https://pear.php.net/bugs/bug.php?id=23782
https://github.com/pear/Archive_Tar/commit/59ace120ac5ceb5f0d36e40e48e1884de1badf76

Search for package or bug name: Reporting problems