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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1674-1, DSA-4378-1
Debian Bugs919147

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php-pear (PTS)bullseye1:1.10.12+submodules+notgz+20210212-1fixed
sid, trixie, bookworm1:1.10.13+submodules+notgz+2022032202-2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php-pearsourcestretch1:1.10.1+submodules+notgz-9+deb9u1DSA-4378-1
php-pearsource(unstable)1:1.10.6+submodules+notgz-1.1919147
php5sourcejessie5.6.39+dfsg-0+deb8u2DLA-1674-1
php5source(unstable)(unfixed)

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