BreachSpiderVerified, not vibes

CVE-2024-48917 in Phpoffice Phpspreadsheet

High 7.5

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The `XmlScanner` class has a scan method which should prevent XXE attacks. However, in a bypass of the previously reported `CVE-2024-47873`, the regexes from the `findCharSet` method, which is used for determining the current encoding can be ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS1.0%
EPSS percentile61th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Phpoffice Phpspreadsheet < 1.29.4 ≥ 2.0.0, < 2.1.3 ≥ 2.2.0, < 2.3.2 ≥ 3.3.0, < 3.4.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The `XmlScanner` class has a scan method which should prevent XXE attacks. However, in a bypass of the previously reported `CVE-2024-47873`, the regexes from the `findCharSet` method, which is used for determining the current encoding can be bypassed by using a payload in the encoding UTF-7, and adding at end of the file a comment with the value `encoding="UTF-8"` with `"`, which is matched by the first regex, so that `encoding='UTF-7'` with single quotes `'` in the XML header is not matched by the second regex. An attacker can bypass the sanitizer and achieve an XML external entity attack. Versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0 fix the issue.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-48917
BreachSpider IDBS-2024-GLOBAL-216443-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2024-11-18
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-611: CWE-611

Related attack patterns (CAPEC)

CAPEC-221 Data Serialization External Entities Blowup via CWE-611

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in PhpSpreadsheet's XmlScanner class allows for XXE (XML External Entity) attacks through a bypass of the previously reported CVE-2024-47873. The issue arises from the regexes in the findCharSet method being bypassed using a UTF-7 encoding payload.

An attacker can exploit this vulnerability by crafting a malicious spreadsheet file with a UTF-7 encoding that includes an XXE payload. When this file is processed by the XmlScanner class, the payload can be executed, potentially leading to unauthorized access to internal files or system information.

Questions

What is CVE-2024-48917?

A vulnerability in PhpSpreadsheet's XmlScanner class allows for XXE (XML External Entity) attacks through a bypass of the previously reported CVE-2024-47873. The issue arises from the regexes in the findCharSet method being bypassed using a UTF-7 encoding payload.

What is the CVSS score for CVE-2024-48917?

CVE-2024-48917 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 1.0%.

Is CVE-2024-48917 actively exploited?

No confirmed active exploitation of CVE-2024-48917 as of 2026-09-25.

How do I remediate CVE-2024-48917?

Priority: HIGH. PSIRT: [email protected]

What systems are affected by CVE-2024-48917?

CVE-2024-48917 affects Phpoffice Phpspreadsheet.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Phpoffice","product":"Phpspreadsheet","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.