Skip to main content

Improper Restriction of XML External Entity Reference

CVE-2024-47873

Severity High
Score 7.5/10

Summary

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The "XmlScanner" class has a "scan" method which should prevent XXE attacks. The regexes used in the "scan" method and the "findCharSet" method can be bypassed by using UCS-4 and encoding guessing. An attacker can bypass the sanitizer and achieve an XML external entity attack. This issue affects phpoffice/phpspreadsheet versions through 1.29.2, 2.0.0 through 2.1.1, 2.2.0 through 2.3.0, and 3.3.0. Note: This has the same fix as CVE-2024-48917.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • NONE

CWE-611 - Improper Restriction of XML External Entity Reference

Listed 4th in the 'OWASP Top Ten', XML External Entities (XXE) vulnerability allows attackers to provide an XML input that contains an external entity. When the XML is parsed, it can cause data extraction and manipulation, execution of commands, denial-of-service attacks, and server-side request forgery.

References

Advisory Timeline

  • Published