CVE intelligence and bounded remediation

CVE-2024-45048 — PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files

High CVSS 8.8

PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions are subject to a bypassing of a filter which allows for an XXE-attack. This in turn allows attacker to obtain contents of local files, even if error reporting is muted. This vulnerability has been addressed in release version 2.2.1. All users are advised to upgrade. There are no known workarounds for this vulnerability.

Severity
High
CVSS
8.8 (3.1)
Published
2024-08-28
CISA KEV
Not currently listed
Ecosystem
software/application
Weaknesses
CWE-611

Affected products

  • phpoffice / phpspreadsheet

Showing 1 representative product identities from 2 source matches. Confirm exact affected versions with the linked vendor and NVD evidence.

Matched remediation archetype

XML external entity and unsafe XML processing

This catalog composition supplies bounded fallback guidance. Explicitly reviewed curated workflows load with the complete record below.

Check exposure

  • Inventory XML parsers used by APIs, file imports, office or image formats, identity protocols, feeds, and background jobs.
  • Determine whether document type declarations, external entities, XInclude, schemas, or network resolvers are enabled.
  • Map parser filesystem and network access and the sensitivity of documents it processes.

Remediate safely

  • Configure each parser to reject document type declarations and disable external entity, XInclude, and network resolution features.
  • Prefer a data format or hardened parser that does not support external resolution, and apply input size and depth limits.
  • Update affected XML libraries and centralize secure parser construction so callers cannot silently override it.

Authoritative sources

Complete CVE record and remediation plan

The detailed catalog view below loads this exact record, its source evidence, and the full seven-phase agentic change plan.