Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2024-45293
phpoffice phpspreadsheet

Score7.5 High
CVSS 3.1
Exploit probability (EPSS)3.8%
within the next 30 days
CategoryMisconfiguration & validation
Published7 October 2024
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, without logging in, without any user interaction.

A successful attack has high impact: reading confidential data.

Weakness type: XML external entity (XXE).

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

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

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

Weakness: CWE-611 – XML external entity (XXE)

Affected products

VendorProductVersions
phpofficephpspreadsheet<1.29.1
phpofficephpspreadsheet>=2.0.0 <2.1.1
phpofficephpspreadsheet>=2.2.0 <2.3.0

Sources

Latest in the same category

  • CVE-2026-81058 Medium 5.5
    Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an Improper Restriction of XML External Entity Reference vulnerability. A low privileged local attacker could potentially exploit…
    Misconfiguration & validation · 30 November 2026
  • CVE-2026-127054 High 7.2
    XML external entity injection (XXE) in the parser for requests to a REST interface. During testing with an authenticated session, the server resolved an external entity and made an HTTP request to an external resource.…
    Misconfiguration & validation · 30 November 2026
  • CVE-2026-138390 Low 2
    A flaw has been found in agent0ai agent-zero up to 2.16. Affected by this vulnerability is the function InfectionChecker.gate of the file plugins/_infection_check/helpers/checker.py. Executing a manipulation can lead…
    Misconfiguration & validation · 30 November 2026
  • CVE-2026-138386 Low 0.9
    A security flaw has been discovered in Aider-AI Aider up to 0.86.2. The impacted element is the function confirm_ask of the file aider/io.py of the component Shell Command Confirmation Handler. The manipulation results…
    Misconfiguration & validation · 30 November 2026
  • CVE-2026-138333 Low 2.1
    A security vulnerability has been detected in dailydotdev daily up to d8fc89d978eb4a454992349adafa283700c52e31. This affects the function render of the file statusline/statusline.mjs of the component Statusline…
    Misconfiguration & validation · 30 November 2026
  • CVE-2026-138330 Low 1.9
    A vulnerability was identified in Anil-matcha open-duet up to 0.8.1. Impacted is the function classify_bash_command of the file backend/app/services/github_classifier.py of the component Git Risk Classifier. Such…
    Misconfiguration & validation · 29 November 2026