kcve.ai취약점 정보 · 내 자산 확인

CVE-2018-1000888 PEAR Archive_Tar version 1.4.3 and earlier contains a CWE-502, CWE-915 vulnerability in the Archive…

설명

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.

PEAR Archive_Tar 버전 1.4.3 이하에는 Archive_Tar 클래스의 CWE-502, CWE-915 취약점이 포함되어 있습니다. 여러 파일 작업이 매개 변수로 `$v_header['filename']`로 있습니다 (예 : file_exists, is_file, is_dir 등). 특정 접두사 경로 없이 추출이 호출되면, `phar://[path_to_malicious_phar_file]`을 경로로 타르 파일을 만들어 직렬화를 트리거할 수 있습니다. 객체 주입은 로드된 PHP 클래스에서 destruct를 트리거하는데 사용될 수 있다. 예를 들어 Archive_Tar 클래스 자체. Archive_Tar 객체를 삽입하면, `@unlink($this->_temp_tarname)'가 호출되기 때문에 임의의 파일 삭제가 발생할 수 있습니다. 유용한 가제트가 있는 다른 클래스가 로드되면 파일이 삭제되거나 수정될 수 있는 원격 코드 실행이 발생할 수 있습니다. 이 취약점은 1.4.4에서 수정 된 것으로 보입니다.

영향 받는 제품 제품 3개

  • canonical

    ubuntu linux

    NVD 기준

    영향 받는 버전

    • 16.04
    • 18.04
    • 18.10

    해결 버전

    해결 버전은 설명 참고

  • debian

    debian linux

    NVD 기준

    영향 받는 버전

    • 8.0
    • 9.0

    해결 버전

    해결 버전은 설명 참고

  • php

    pear archive tar

    NVD 기준

    영향 받는 버전

    • 1.4.3 이하

    해결 버전

    해결 버전은 설명 참고

참고 자료 9건

‹ 목록

점검 지원 범위 문의

도입 문의