Analysis and contextual insights are available on OpenCVE Cloud.
No vendor fix or workaround currently provided.
Additional remediation guidance may be available on OpenCVE Cloud.
Tracking
Sign in to view the affected projects.
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-5g9f-cwwg-4p8g | PhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles |
Tue, 23 Jun 2026 02:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
Sun, 21 Jun 2026 09:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pontedilana
Pontedilana php-weasyprint |
|
| Vendors & Products |
Pontedilana
Pontedilana php-weasyprint |
Fri, 19 Jun 2026 18:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | PhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles | |
| Weaknesses | CWE-73 | |
| References |
|
|
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2026-06-23T02:09:16.687Z
Reserved: 2026-05-29T14:35:45.904Z
Link: CVE-2026-49358
Updated: 2026-06-23T02:09:11.128Z
No data.
No data.
OpenCVE Enrichment
Updated: 2026-06-20T22:35:52Z
Github GHSA