> CVE-2024-45291 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2024-10-07 21:15
MODIFIED
2024-10-16 19:09
CVSS_SCORE V3
6.3
EPSS (Prob. Exploit)
0.86%
Top 41.7%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-11

> DESCRIPTION

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. It's possible for an attacker to construct an XLSX file that links images from arbitrary paths. When embedding images has been enabled in HTML writer with `$writer->setEmbedImages(true);` those files will be included in the output as `data:` URLs, regardless of the file's type. Also URLs can be used for embedding, resulting in a Server-Side Request Forgery vulnerability. When embedding images has been enabled, an attacker can read arbitrary files on the server and perform arbitrary HTTP GET requests. Note that any PHP protocol wrappers can be used, meaning that if for example the `expect://` wrapper is enabled, also remote code execution is possible. This issue has been addressed in release versions 1.29.2, 2.1.1, and 2.3.0. All users are advised to upgrade. there are no known workarounds for this vulnerability.

> AFFECTED_PRODUCTS

Phpoffice - Phpspreadsheet
< 1.29.2
Phpoffice - Phpspreadsheet
>= 2.0.0 < 2.1.1
Phpoffice - Phpspreadsheet
>= 2.2.0 < 2.3.0

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
None (N)
Aucune modification de données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
None
Aucune modification de données possible
Disponibilité
None
Aucune interruption de service

> GITHUB SECURITY ADVISORY

GHSA-w9xv-qf98-ccq4 MODERATE

PhpSpreadsheet allows absolute path traversal and Server-Side Request Forgery in HTML writer when embedding images is enabled

AFFECTED PACKAGES:
COMPOSER / phpoffice/phpexcel
<= 1.8.2
COMPOSER / phpoffice/phpspreadsheet
>= 2.0.0, < 2.1.1
Fixed in: 2.1.1
COMPOSER / phpoffice/phpspreadsheet
< 1.29.2
Fixed in: 1.29.2
COMPOSER / phpoffice/phpspreadsheet
>= 2.2.0, < 2.3.0
Fixed in: 2.3.0

> HISTORIQUE DES MODIFICATIONS

Première apparition
07/10/2024 21:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:55
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME