Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpoffice/phpspreadsheet
  4. ›
  5. CVE-2024-45048

CVE-2024-45048: XXE in PHPSpreadsheet encoding is returned

August 29, 2024 (updated March 6, 2025)

Bypassing the filter allows a XXE-attack. Which is turn allows attacker to obtain contents of local files, even if error reporting muted by @ symbol. (LFI-attack)

References

  • github.com/PHPOffice/PhpSpreadsheet
  • github.com/PHPOffice/PhpSpreadsheet/commit/bea2d4b30f24bcc8a7712e208d1359e603b45dda
  • github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-ghg6-32f9-2jp7
  • github.com/advisories/GHSA-ghg6-32f9-2jp7
  • nvd.nist.gov/vuln/detail/CVE-2024-45048

Code Behaviors & Features

Detect and mitigate CVE-2024-45048 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.29.1, all versions starting from 2.0.0 before 2.1.1, all versions starting from 2.2.0 before 2.2.1

Fixed versions

  • 1.29.1
  • 2.2.1
  • 2.1.1

Solution

Upgrade to versions 1.29.1, 2.1.1, 2.2.1 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

packagist/phpoffice/phpspreadsheet/CVE-2024-45048.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:22 +0000.