> CVE-2026-49358 [LOW]

« BACK_TO_HOME
PUBLISHED
2026-06-19 15:16
MODIFIED
2026-06-19 15:16
CVSS_SCORE V3
3.0
EPSS (Prob. Exploit)
0.15%
Top 96.2%
DATA SOURCES:
NVD đź”— 2026-06-19 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-10-29

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L
EXPLOITABILITY
0.5
IMPACT
2.5

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
High (H)
Authentifié avec privilèges administratifs
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
Low (L)
Interruption partielle du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
Low
Interruption partielle du service possible

> WEAKNESSES

CWE-73

> CWE DETAILED DESCRIPTIONS

CWE-73: External Control of File Name or Path - The product allows user input to control or influence paths or file names that are used in filesystem operations.

> GITHUB SECURITY ADVISORY

GHSA-5g9f-cwwg-4p8g LOW

PhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles

AFFECTED PACKAGES:
COMPOSER / pontedilana/php-weasyprint
<= 2.5.1
Fixed in: 2.6.0

> HISTORIQUE DES MODIFICATIONS

Première apparition
19/06/2026 15:16
Source: NVD
📊 ENRICHISSEMENT 01/07/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-73: External Control of File Name or Path - The product allows user input to control or influence paths or file names that are used in filesystem operations.
Total des modifications: 1 Dernière mise à jour: 4 months ago

> REFERENCES

https://github.com/KnpLabs/snappy/security/advisories/GHSA-87qc-37cw-84h4
https://github.com/pontedilana/php-weasyprint/commit/6d328ffd3bcb800c7c2e8a594b1...
https://github.com/pontedilana/php-weasyprint/releases/tag/2.6.0
https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-5g9f-cwwg...
« BACK_TO_HOME