cve.bz

CVE-2024-48917 phpoffice phpspreadsheet

7.5 highExploit referenceEPSS 0.7%Fix available

High (7.5) in phpoffice phpspreadsheet. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in phpoffice/phpspreadsheet 1.29.4, 2.1.3, 2.3.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 55th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-11-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-611 Improper Restriction of XML External Entity Reference
OWASP Top 10
A02:2025 Security Misconfiguration
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-48917 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-48917?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-48917?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-48917 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
phpoffice:phpspreadsheetbefore 1.29.4
phpoffice:phpspreadsheetfrom 2.0.0 before 2.1.3
phpoffice:phpspreadsheetfrom 2.2.0 before 2.3.2
phpoffice:phpspreadsheetfrom 3.3.0 before 3.4.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7cc9-j4mv-vcjpPackagistphpoffice/phpspreadsheet<1.29.41.29.4
GHSA-7cc9-j4mv-vcjpPackagistphpoffice/phpspreadsheet>=2.0.0 <2.1.32.1.3
GHSA-7cc9-j4mv-vcjpPackagistphpoffice/phpspreadsheet>=2.2.0 <2.3.22.3.2
GHSA-7cc9-j4mv-vcjpPackagistphpoffice/phpspreadsheet>=3.3.0 <3.4.03.4.0
GHSA-7cc9-j4mv-vcjpPackagistphpoffice/phpexcel<=1.8.2no fix published

Attack patterns (CAPEC)

  • CAPEC-221 Data Serialization External Entities Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON