Search

Find a vulnerability

Search criteria

    3 vulnerabilities found for pear_archive_tar by php

    FKIE_CVE-2018-1000888

    Vulnerability from fkie_nvd - Published: 2018-12-28 16:29 - Updated: 2026-06-17 01:33
    Summary
    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.
    References
    cve@mitre.orghttps://blog.ripstech.com/2018/new-php-exploitation-technique/Exploit, Third Party Advisory
    cve@mitre.orghttps://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdfExploit, Technical Description, Third Party Advisory
    cve@mitre.orghttps://lists.debian.org/debian-lts-announce/2019/02/msg00020.htmlThird Party Advisory
    cve@mitre.orghttps://pear.php.net/bugs/bug.php?id=23782Broken Link, Third Party Advisory
    cve@mitre.orghttps://pear.php.net/package/Archive_Tar/download/Broken Link, Third Party Advisory
    cve@mitre.orghttps://security.gentoo.org/glsa/202006-14
    cve@mitre.orghttps://usn.ubuntu.com/3857-1/Third Party Advisory
    cve@mitre.orghttps://www.debian.org/security/2019/dsa-4378Third Party Advisory
    cve@mitre.orghttps://www.exploit-db.com/exploits/46108/Exploit, Third Party Advisory, VDB Entry
    af854a3a-2127-422b-91ae-364da2661108https://blog.ripstech.com/2018/new-php-exploitation-technique/Exploit, Third Party Advisory
    af854a3a-2127-422b-91ae-364da2661108https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdfExploit, Technical Description, Third Party Advisory
    af854a3a-2127-422b-91ae-364da2661108https://lists.debian.org/debian-lts-announce/2019/02/msg00020.htmlThird Party Advisory
    af854a3a-2127-422b-91ae-364da2661108https://pear.php.net/bugs/bug.php?id=23782Broken Link, Third Party Advisory
    af854a3a-2127-422b-91ae-364da2661108https://pear.php.net/package/Archive_Tar/download/Broken Link, Third Party Advisory
    af854a3a-2127-422b-91ae-364da2661108https://security.gentoo.org/glsa/202006-14
    af854a3a-2127-422b-91ae-364da2661108https://usn.ubuntu.com/3857-1/Third Party Advisory
    af854a3a-2127-422b-91ae-364da2661108https://www.debian.org/security/2019/dsa-4378Third Party Advisory
    af854a3a-2127-422b-91ae-364da2661108https://www.exploit-db.com/exploits/46108/Exploit, Third Party Advisory, VDB Entry
    Impacted products

    {
      "affected": [
        {
          "affectedData": [
            {
              "product": "n/a",
              "vendor": "n/a",
              "versions": [
                {
                  "status": "affected",
                  "version": "n/a"
                }
              ]
            }
          ],
          "source": "cve@mitre.org"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:php:pear_archive_tar:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "AA4A9202-16C6-4AA6-A5F0-59F4E6B1F2A3",
                  "versionEndIncluding": "1.4.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        },
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                  "matchCriteriaId": "F7016A2A-8365-4F1A-89A2-7A19F2BCAE5B",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
                  "matchCriteriaId": "23A7C53F-B80F-4E6A-AFA9-58EEA84BE11D",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*",
                  "matchCriteriaId": "07C312A0-CD2C-4B9C-B064-6409B25C278F",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        },
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
                  "matchCriteriaId": "C11E6FB0-C8C0-4527-9AA0-CB9B316F8F43",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*",
                  "matchCriteriaId": "DEECE5FC-CACF-4496-A3E7-164736409252",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "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[\u0027filename\u0027]` 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-\u003e_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."
        },
        {
          "lang": "es",
          "value": "PEAR Archive_Tar, en versiones 1.4.3 y anteriores, contiene vulnerabilidades CWE-502 y CWE-915 en la clase Archive_Tar. Hay varias operaciones de archivo con \"$v_header[\u0027filename\u0027]\" como par\u00e1metro (como file_exists, is_file, is_dir, etc.). Cuando se llama a extract sin una ruta de prefijo espec\u00edfica, podemos desencadenar la deserializaci\u00f3n manipulando un archivo tar con \"phar://[path_to_malicious_phar_file]\" como ruta. La inyecci\u00f3n de objetos puede emplearse para desencadenar destruct en las clases PHP cargadas, como en la propia clase Archive_Tar. Con la inyecci\u00f3n del objeto Archive_Tar, puede ocurrir un borrado de archivos arbitrarios debido a que se llama a \"@unlink($this-\u003e_temp_tarname)\". Si se carga otra clase con un gadget \u00fatil, podr\u00eda ser posible provocar la ejecuci\u00f3n remota de c\u00f3digo que puede resultar en que los archivos se eliminen o modifiquen. La vulnerabilidad parece haber sido solucionada en la versi\u00f3n 1.4.4."
        }
      ],
      "id": "CVE-2018-1000888",
      "lastModified": "2026-06-17T01:33:15.920",
      "metrics": {
        "cvssMetricV2": [
          {
            "acInsufInfo": false,
            "baseSeverity": "MEDIUM",
            "cvssData": {
              "accessComplexity": "MEDIUM",
              "accessVector": "NETWORK",
              "authentication": "NONE",
              "availabilityImpact": "PARTIAL",
              "baseScore": 6.8,
              "confidentialityImpact": "PARTIAL",
              "integrityImpact": "PARTIAL",
              "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P",
              "version": "2.0"
            },
            "exploitabilityScore": 8.6,
            "impactScore": 6.4,
            "obtainAllPrivilege": false,
            "obtainOtherPrivilege": false,
            "obtainUserPrivilege": false,
            "source": "nvd@nist.gov",
            "type": "Primary",
            "userInteractionRequired": true
          }
        ],
        "cvssMetricV30": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "HIGH",
              "baseScore": 8.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "REQUIRED",
              "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
              "version": "3.0"
            },
            "exploitabilityScore": 2.8,
            "impactScore": 5.9,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      },
      "published": "2018-12-28T16:29:01.957",
      "references": [
        {
          "source": "cve@mitre.org",
          "tags": [
            "Exploit",
            "Third Party Advisory"
          ],
          "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Exploit",
            "Technical Description",
            "Third Party Advisory"
          ],
          "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Broken Link",
            "Third Party Advisory"
          ],
          "url": "https://pear.php.net/bugs/bug.php?id=23782"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Broken Link",
            "Third Party Advisory"
          ],
          "url": "https://pear.php.net/package/Archive_Tar/download/"
        },
        {
          "source": "cve@mitre.org",
          "url": "https://security.gentoo.org/glsa/202006-14"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://usn.ubuntu.com/3857-1/"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://www.debian.org/security/2019/dsa-4378"
        },
        {
          "source": "cve@mitre.org",
          "tags": [
            "Exploit",
            "Third Party Advisory",
            "VDB Entry"
          ],
          "url": "https://www.exploit-db.com/exploits/46108/"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Exploit",
            "Third Party Advisory"
          ],
          "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Exploit",
            "Technical Description",
            "Third Party Advisory"
          ],
          "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Broken Link",
            "Third Party Advisory"
          ],
          "url": "https://pear.php.net/bugs/bug.php?id=23782"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Broken Link",
            "Third Party Advisory"
          ],
          "url": "https://pear.php.net/package/Archive_Tar/download/"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "url": "https://security.gentoo.org/glsa/202006-14"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://usn.ubuntu.com/3857-1/"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://www.debian.org/security/2019/dsa-4378"
        },
        {
          "source": "af854a3a-2127-422b-91ae-364da2661108",
          "tags": [
            "Exploit",
            "Third Party Advisory",
            "VDB Entry"
          ],
          "url": "https://www.exploit-db.com/exploits/46108/"
        }
      ],
      "sourceIdentifier": "cve@mitre.org",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-502"
            }
          ],
          "source": "nvd@nist.gov",
          "type": "Primary"
        }
      ]
    }

    CVE-2018-1000888 (GCVE-0-2018-1000888)

    Vulnerability from nvd – Published: 2018-12-27 18:00 – Updated: 2024-08-05 12:47
    VLAI
    Summary
    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.
    Severity
    No CVSS data available.
    CWE
    • n/a
    Assigner
    mitre CNA under the mitre root
    CNA scorecard E 30/100 over 1975 records in the last 180 days details
    References
    Date Public
    2018-12-20 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-05T12:47:57.148Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "name": "[debian-lts-announce] 20190212 [SECURITY] [DLA 1674-1] php5 security update",
                "tags": [
                  "mailing-list",
                  "x_refsource_MLIST",
                  "x_transferred"
                ],
                "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
              },
              {
                "name": "USN-3857-1",
                "tags": [
                  "vendor-advisory",
                  "x_refsource_UBUNTU",
                  "x_transferred"
                ],
                "url": "https://usn.ubuntu.com/3857-1/"
              },
              {
                "name": "DSA-4378",
                "tags": [
                  "vendor-advisory",
                  "x_refsource_DEBIAN",
                  "x_transferred"
                ],
                "url": "https://www.debian.org/security/2019/dsa-4378"
              },
              {
                "name": "46108",
                "tags": [
                  "exploit",
                  "x_refsource_EXPLOIT-DB",
                  "x_transferred"
                ],
                "url": "https://www.exploit-db.com/exploits/46108/"
              },
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://pear.php.net/package/Archive_Tar/download/"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
              },
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://pear.php.net/bugs/bug.php?id=23782"
              },
              {
                "name": "GLSA-202006-14",
                "tags": [
                  "vendor-advisory",
                  "x_refsource_GENTOO",
                  "x_transferred"
                ],
                "url": "https://security.gentoo.org/glsa/202006-14"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "n/a",
              "vendor": "n/a",
              "versions": [
                {
                  "status": "affected",
                  "version": "n/a"
                }
              ]
            }
          ],
          "dateAssigned": "2018-12-26T00:00:00.000Z",
          "datePublic": "2018-12-20T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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[\u0027filename\u0027]` 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-\u003e_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."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "n/a",
                  "lang": "en",
                  "type": "text"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2020-06-15T17:06:51.000Z",
            "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
            "shortName": "mitre"
          },
          "references": [
            {
              "name": "[debian-lts-announce] 20190212 [SECURITY] [DLA 1674-1] php5 security update",
              "tags": [
                "mailing-list",
                "x_refsource_MLIST"
              ],
              "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
            },
            {
              "name": "USN-3857-1",
              "tags": [
                "vendor-advisory",
                "x_refsource_UBUNTU"
              ],
              "url": "https://usn.ubuntu.com/3857-1/"
            },
            {
              "name": "DSA-4378",
              "tags": [
                "vendor-advisory",
                "x_refsource_DEBIAN"
              ],
              "url": "https://www.debian.org/security/2019/dsa-4378"
            },
            {
              "name": "46108",
              "tags": [
                "exploit",
                "x_refsource_EXPLOIT-DB"
              ],
              "url": "https://www.exploit-db.com/exploits/46108/"
            },
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://pear.php.net/package/Archive_Tar/download/"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
            },
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://pear.php.net/bugs/bug.php?id=23782"
            },
            {
              "name": "GLSA-202006-14",
              "tags": [
                "vendor-advisory",
                "x_refsource_GENTOO"
              ],
              "url": "https://security.gentoo.org/glsa/202006-14"
            }
          ],
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "cve@mitre.org",
              "DATE_ASSIGNED": "2018-12-26T20:07:07.995941",
              "DATE_REQUESTED": "2018-12-20T22:07:26",
              "ID": "CVE-2018-1000888",
              "REQUESTER": "pear-group@php.net",
              "STATE": "PUBLIC"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "n/a",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "n/a"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "n/a"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "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[\u0027filename\u0027]` 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-\u003e_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."
                }
              ]
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "n/a"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "[debian-lts-announce] 20190212 [SECURITY] [DLA 1674-1] php5 security update",
                  "refsource": "MLIST",
                  "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
                },
                {
                  "name": "USN-3857-1",
                  "refsource": "UBUNTU",
                  "url": "https://usn.ubuntu.com/3857-1/"
                },
                {
                  "name": "DSA-4378",
                  "refsource": "DEBIAN",
                  "url": "https://www.debian.org/security/2019/dsa-4378"
                },
                {
                  "name": "46108",
                  "refsource": "EXPLOIT-DB",
                  "url": "https://www.exploit-db.com/exploits/46108/"
                },
                {
                  "name": "https://pear.php.net/package/Archive_Tar/download/",
                  "refsource": "CONFIRM",
                  "url": "https://pear.php.net/package/Archive_Tar/download/"
                },
                {
                  "name": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf",
                  "refsource": "MISC",
                  "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
                },
                {
                  "name": "https://blog.ripstech.com/2018/new-php-exploitation-technique/",
                  "refsource": "MISC",
                  "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
                },
                {
                  "name": "https://pear.php.net/bugs/bug.php?id=23782",
                  "refsource": "CONFIRM",
                  "url": "https://pear.php.net/bugs/bug.php?id=23782"
                },
                {
                  "name": "GLSA-202006-14",
                  "refsource": "GENTOO",
                  "url": "https://security.gentoo.org/glsa/202006-14"
                }
              ]
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "assignerShortName": "mitre",
        "cveId": "CVE-2018-1000888",
        "datePublished": "2018-12-27T18:00:00.000Z",
        "dateReserved": "2018-12-20T00:00:00.000Z",
        "dateUpdated": "2024-08-05T12:47:57.148Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2018-1000888 (GCVE-0-2018-1000888)

    Vulnerability from cvelistv5 – Published: 2018-12-27 18:00 – Updated: 2024-08-05 12:47
    VLAI
    Summary
    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.
    Severity
    No CVSS data available.
    CWE
    • n/a
    Assigner
    mitre CNA under the mitre root
    CNA scorecard E 30/100 over 1975 records in the last 180 days details
    References
    Date Public
    2018-12-20 00:00
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-05T12:47:57.148Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "name": "[debian-lts-announce] 20190212 [SECURITY] [DLA 1674-1] php5 security update",
                "tags": [
                  "mailing-list",
                  "x_refsource_MLIST",
                  "x_transferred"
                ],
                "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
              },
              {
                "name": "USN-3857-1",
                "tags": [
                  "vendor-advisory",
                  "x_refsource_UBUNTU",
                  "x_transferred"
                ],
                "url": "https://usn.ubuntu.com/3857-1/"
              },
              {
                "name": "DSA-4378",
                "tags": [
                  "vendor-advisory",
                  "x_refsource_DEBIAN",
                  "x_transferred"
                ],
                "url": "https://www.debian.org/security/2019/dsa-4378"
              },
              {
                "name": "46108",
                "tags": [
                  "exploit",
                  "x_refsource_EXPLOIT-DB",
                  "x_transferred"
                ],
                "url": "https://www.exploit-db.com/exploits/46108/"
              },
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://pear.php.net/package/Archive_Tar/download/"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
              },
              {
                "tags": [
                  "x_refsource_MISC",
                  "x_transferred"
                ],
                "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
              },
              {
                "tags": [
                  "x_refsource_CONFIRM",
                  "x_transferred"
                ],
                "url": "https://pear.php.net/bugs/bug.php?id=23782"
              },
              {
                "name": "GLSA-202006-14",
                "tags": [
                  "vendor-advisory",
                  "x_refsource_GENTOO",
                  "x_transferred"
                ],
                "url": "https://security.gentoo.org/glsa/202006-14"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "n/a",
              "vendor": "n/a",
              "versions": [
                {
                  "status": "affected",
                  "version": "n/a"
                }
              ]
            }
          ],
          "dateAssigned": "2018-12-26T00:00:00.000Z",
          "datePublic": "2018-12-20T00:00:00.000Z",
          "descriptions": [
            {
              "lang": "en",
              "value": "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[\u0027filename\u0027]` 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-\u003e_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."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "n/a",
                  "lang": "en",
                  "type": "text"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2020-06-15T17:06:51.000Z",
            "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
            "shortName": "mitre"
          },
          "references": [
            {
              "name": "[debian-lts-announce] 20190212 [SECURITY] [DLA 1674-1] php5 security update",
              "tags": [
                "mailing-list",
                "x_refsource_MLIST"
              ],
              "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
            },
            {
              "name": "USN-3857-1",
              "tags": [
                "vendor-advisory",
                "x_refsource_UBUNTU"
              ],
              "url": "https://usn.ubuntu.com/3857-1/"
            },
            {
              "name": "DSA-4378",
              "tags": [
                "vendor-advisory",
                "x_refsource_DEBIAN"
              ],
              "url": "https://www.debian.org/security/2019/dsa-4378"
            },
            {
              "name": "46108",
              "tags": [
                "exploit",
                "x_refsource_EXPLOIT-DB"
              ],
              "url": "https://www.exploit-db.com/exploits/46108/"
            },
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://pear.php.net/package/Archive_Tar/download/"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
            },
            {
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
            },
            {
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://pear.php.net/bugs/bug.php?id=23782"
            },
            {
              "name": "GLSA-202006-14",
              "tags": [
                "vendor-advisory",
                "x_refsource_GENTOO"
              ],
              "url": "https://security.gentoo.org/glsa/202006-14"
            }
          ],
          "x_legacyV4Record": {
            "CVE_data_meta": {
              "ASSIGNER": "cve@mitre.org",
              "DATE_ASSIGNED": "2018-12-26T20:07:07.995941",
              "DATE_REQUESTED": "2018-12-20T22:07:26",
              "ID": "CVE-2018-1000888",
              "REQUESTER": "pear-group@php.net",
              "STATE": "PUBLIC"
            },
            "affects": {
              "vendor": {
                "vendor_data": [
                  {
                    "product": {
                      "product_data": [
                        {
                          "product_name": "n/a",
                          "version": {
                            "version_data": [
                              {
                                "version_value": "n/a"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "vendor_name": "n/a"
                  }
                ]
              }
            },
            "data_format": "MITRE",
            "data_type": "CVE",
            "data_version": "4.0",
            "description": {
              "description_data": [
                {
                  "lang": "eng",
                  "value": "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[\u0027filename\u0027]` 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-\u003e_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."
                }
              ]
            },
            "problemtype": {
              "problemtype_data": [
                {
                  "description": [
                    {
                      "lang": "eng",
                      "value": "n/a"
                    }
                  ]
                }
              ]
            },
            "references": {
              "reference_data": [
                {
                  "name": "[debian-lts-announce] 20190212 [SECURITY] [DLA 1674-1] php5 security update",
                  "refsource": "MLIST",
                  "url": "https://lists.debian.org/debian-lts-announce/2019/02/msg00020.html"
                },
                {
                  "name": "USN-3857-1",
                  "refsource": "UBUNTU",
                  "url": "https://usn.ubuntu.com/3857-1/"
                },
                {
                  "name": "DSA-4378",
                  "refsource": "DEBIAN",
                  "url": "https://www.debian.org/security/2019/dsa-4378"
                },
                {
                  "name": "46108",
                  "refsource": "EXPLOIT-DB",
                  "url": "https://www.exploit-db.com/exploits/46108/"
                },
                {
                  "name": "https://pear.php.net/package/Archive_Tar/download/",
                  "refsource": "CONFIRM",
                  "url": "https://pear.php.net/package/Archive_Tar/download/"
                },
                {
                  "name": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf",
                  "refsource": "MISC",
                  "url": "https://cdn2.hubspot.net/hubfs/3853213/us-18-Thomas-It%27s-A-PHP-Unserialization-Vulnerability-Jim-But-Not-As-We-....pdf"
                },
                {
                  "name": "https://blog.ripstech.com/2018/new-php-exploitation-technique/",
                  "refsource": "MISC",
                  "url": "https://blog.ripstech.com/2018/new-php-exploitation-technique/"
                },
                {
                  "name": "https://pear.php.net/bugs/bug.php?id=23782",
                  "refsource": "CONFIRM",
                  "url": "https://pear.php.net/bugs/bug.php?id=23782"
                },
                {
                  "name": "GLSA-202006-14",
                  "refsource": "GENTOO",
                  "url": "https://security.gentoo.org/glsa/202006-14"
                }
              ]
            }
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "assignerShortName": "mitre",
        "cveId": "CVE-2018-1000888",
        "datePublished": "2018-12-27T18:00:00.000Z",
        "dateReserved": "2018-12-20T00:00:00.000Z",
        "dateUpdated": "2024-08-05T12:47:57.148Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }