PhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pontedilana | php-weasyprint | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pontedilana | Php-weasyprint |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-5g9f-cwwg-4p8g | PhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.166% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pontedilana
Pontedilana php-weasyprint |
|
| Vendors & Products |
Pontedilana
Pontedilana php-weasyprint |
| 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
|