Name | CVE-2018-1000888 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1674-1, DSA-4378-1 |
Debian Bugs | 919147 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
php-pear (PTS) | bullseye | 1:1.10.12+submodules+notgz+20210212-1 | fixed |
sid, trixie, bookworm | 1:1.10.13+submodules+notgz+2022032202-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
php-pear | source | stretch | 1:1.10.1+submodules+notgz-9+deb9u1 | DSA-4378-1 | ||
php-pear | source | (unstable) | 1:1.10.6+submodules+notgz-1.1 | 919147 | ||
php5 | source | jessie | 5.6.39+dfsg-0+deb8u2 | DLA-1674-1 | ||
php5 | source | (unstable) | (unfixed) |
https://pear.php.net/bugs/bug.php?id=23782
https://github.com/pear/Archive_Tar/commit/59ace120ac5ceb5f0d36e40e48e1884de1badf76