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

CVE-2026-49358 PhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles

설명

PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, `AbstractGenerator::$temporaryFiles` is a public array, and `removeTemporaryFiles()` — invoked from `__destruct()` and from a registered shutdown function — calls `unlink()` on every entry without verifying that the path is contained within the temporary folder. Any code holding a reference to a generator instance can push an arbitrary path into the array and have it deleted on script shutdown. This mirrors the KnpLabs/snappy issue GHSA-87qc-37cw-84h4. PhpWeasyPrint version 2.6.0 contains a patch for the issue.

영향 받는 제품 제품 1개

  • pontedilana

    php-weasyprint

    해결 버전 있음

    영향 받는 버전

    • 2.6.0 미만

    해결 버전

    • 2.6.0 이상

참고 자료 4건

‹ 목록

점검 지원 범위 문의

도입 문의