> CVE-2024-45293 [HIGH]

« BACK_TO_HOME
PUBLISHED
2024-10-07 20:15
MODIFIED
2025-03-07 17:06
CVSS_SCORE V3
7.5
EPSS (Prob. Exploit)
2.78%
Top 13.7%
🎯 NUCLEI TEMPLATE
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-10-25 GITHUB 🔗 2026-11-11 NUCLEI 🔗 2026-11-08

> DESCRIPTION

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. The security scanner responsible for preventing XXE attacks in the XLSX reader can be bypassed by slightly modifying the XML structure, utilizing white-spaces. On servers that allow users to upload their own Excel (XLSX) sheets, Server files and sensitive information can be disclosed by providing a crafted sheet. The security scan function in src/PhpSpreadsheet/Reader/Security/XmlScanner.php contains a flawed XML encoding check to retrieve the input file's XML encoding in the toUtf8 function. The function searches for the XML encoding through a defined regex which looks for `encoding="*"` and/or `encoding='*'`, if not found, it defaults to the UTF-8 encoding which bypasses the conversion logic. This logic can be used to pass a UTF-7 encoded XXE payload, by utilizing a whitespace before or after the = in the attribute definition. Sensitive information disclosure through the XXE on sites that allow users to upload their own excel spreadsheets, and parse them using PHPSpreadsheet's Excel parser. This issue has been addressed in release versions 1.29.1, 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.1
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:L/PR:N/UI:N/S:U/C:H/I:N/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/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
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
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
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-6hwr-6v2f-3m88 HIGH

XXE in PHPSpreadsheet's XLSX reader

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.1
Fixed in: 1.29.1
COMPOSER / phpoffice/phpspreadsheet
>= 2.2.0, < 2.3.0
Fixed in: 2.3.0

> NUCLEI TEMPLATES

Des templates Nuclei sont disponibles pour scanner cette vulnérabilité.

🎯
CVE-2024-45293.yaml
http/cves/2024/CVE-2024-45293.yaml
Usage: nuclei -t http/cves/2024/CVE-2024-45293.yaml -u target.com

> HISTORIQUE DES MODIFICATIONS

Première apparition
07/10/2024 20: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