Skip to main content
Network Thinking Solutions Logo

CVE-2024-47873

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The XmlScanner class has a scan method which should prevent XXE attacks. However, prior to versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0, the regexes used in the `scan` method and the findCharSet method can be bypassed by using UCS-4 and encoding guessing.

All CVEs
CVE-2024-47873Published 11/18/2024

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The XmlScanner class has a scan method which should prevent XXE attacks. However, prior to versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0, the regexes used in the `scan` method and the findCharSet method can be bypassed by using UCS-4 and encoding guessing.

Vendor advisory
CVSS7.5High

Overview

PhpSpreadsheet is a PHP library for reading and writing spreadsheet files. The XmlScanner class has a scan method which should prevent XXE attacks. However, prior to versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0, 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. Versions 1.9.4, 2.1.3, 2.3.2, and 3.4.0 fix the issue.

Published
11/18/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
phpspreadsheet
phpoffice
< 1.29.4

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.0.0, < 2.1.3

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.2.0, < 2.3.2

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 3.3.0, < 3.4.0

Verify advisory

Source
PhpSpreadsheet
PHPOffice
< 1.29.4

Verify advisory

Source
PhpSpreadsheet
PHPOffice
>= 2.0.0, < 2.1.3

Verify advisory

Source
PhpSpreadsheet
PHPOffice
>= 2.2.0, < 2.3.2

Verify advisory

Source
PhpSpreadsheet
PHPOffice
>= 3.3.0, < 3.4.0

Verify advisory

Source
phpspreadsheet
phpoffice
< 1.29.4

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.0.0, < 2.1.3

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 2.2.0, < 2.3.2

Verify advisory

Source
phpspreadsheet
phpoffice
≥ 3.3.0, < 3.4.0

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.