{"schemaVersion":3,"id":"CVE-2018-1000888","aliases":["UBUNTU-CVE-2018-1000888","USN-3857-1","DEBIAN-CVE-2018-1000888","DLA-1674-1","DSA-4378-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-12-27T18:00:00.000Z","modified":"2024-08-05T12:47:57.148Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true}]},"epss":{"probability":0.19125,"percentile":0.97301,"severity":"medium","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.19125},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.19207,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.19207,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.19207,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.19659,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.19125,"percentile":0.97301}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.19659,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.19125,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.19125,"percentile":0.97301}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_E7EF994072C413CE","name":"Exploit Reference (cdn2.hubspot.net)","source":"reference","url":"https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_C37F05797C12E7D1","name":"Exploit Reference (blog.ripstech.com)","source":"reference","url":"https://blog.ripstech.com/2018/new-php-exploitation-technique/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"46108","name":"PEAR Archive_Tar < 1.4.4 - PHP Object Injection","source":"exploit-database","url":"https://www.exploit-db.com/exploits/46108","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/46108.txt","codes":["CVE-2018-1000888"]},"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-502","name":"Deserialization of Untrusted Data","description":"The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/502.html"}],"affected":[{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"18.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"16.04 | 18.04 | 18.10","eol":{"isEol":true,"eolDate":"2021-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"16.04","label":"16.04 'Xenial Xerus' (LTS)","eolFrom":"2021-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"16.04.7"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"php-pear","name":"php-pear","label":"php-pear","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php-pear","purlType":"deb","versions":[{"text":"< 1:1.10.6+submodules+notgz-1.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:1.10.1+submodules+notgz-9+deb9u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:1.10.6+submodules+notgz-1.1 | < 1:1.10.1+submodules+notgz-9+deb9u1","eol":null,"hubHref":null},{"vendor":"debian","product":"php5","name":"php5","label":"php5","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php5","purlType":"deb","versions":[{"text":"< 5.6.39+dfsg-0+deb8u2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.6.39+dfsg-0+deb8u2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php-pear","name":"php-pear","label":"php-pear","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php-pear","purlType":"deb","versions":[{"text":"< 1:1.10.1+submodules+notgz-6ubuntu0.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:1.10.5+submodules+notgz-1ubuntu1.18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:1.10.1+submodules+notgz-6ubuntu0.1 | < 1:1.10.5+submodules+notgz-1ubuntu1.18.04.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"php","product":"pear_archive_tar","name":"pear archive tar","label":"pear_archive_tar","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.4.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.4.3","eol":null,"hubHref":"/vendor/php/pear_archive_tar"}],"affectedCount":6,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html","label":"lists.debian.org/debian-lts-announce/2019/02/msg00020.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/3857-1/","label":"usn.ubuntu.com/3857-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://www.debian.org/security/2019/dsa-4378","label":"www.debian.org/security/2019/dsa-4378","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/46108/","label":"www.exploit-db.com/exploits/46108/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]},{"url":"https://pear.php.net/package/Archive_Tar/download/","label":"pear.php.net/package/Archive_Tar/download/","hostname":"pear.php.net","tags":["X Refsource CONFIRM","Broken Link","Third Party Advisory","REPORT"]},{"url":"https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf","label":"cdn2.hubspot.net/hubfs/…","hostname":"cdn2.hubspot.net","tags":["X Refsource MISC","Exploit","Technical Description","Third Party Advisory","REPORT"]},{"url":"https://blog.ripstech.com/2018/new-php-exploitation-technique/","label":"blog.ripstech.com/2018/new-php-exploitation-technique/","hostname":"blog.ripstech.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","REPORT"]},{"url":"https://pear.php.net/bugs/bug.php?id=23782","label":"pear.php.net/bugs/bug.php?id=23782","hostname":"pear.php.net","tags":["X Refsource CONFIRM","Broken Link","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202006-14","label":"security.gentoo.org/glsa/202006-14","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO"]},{"url":"https://ubuntu.com/security/CVE-2018-1000888","label":"ubuntu.com/security/CVE-2018-1000888","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://blog.pear.php.net/2018/12/20/security-vulnerability-announcement-archive_tar/","label":"blog.pear.php.net/2018/12/20/security-vulnerability-announcement-archive_tar/","hostname":"blog.pear.php.net","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-3857-1","label":"ubuntu.com/security/notices/USN-3857-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-1000888","label":"www.cve.org/CVERecord?id=CVE-2018-1000888","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-1000888","label":"security-tracker.debian.org/tracker/CVE-2018-1000888","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:11167-1","OPENSUSE-SU-2024:11169-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11167-1","OPENSUSE-SU-2024:11169-1"]},"timeline":[{"kind":"published","date":"2018-12-27T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T12:47:57.148Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":49,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:33:09.517Z","stale":false,"partial":false}}