← 脆弱性リストに戻る
EPPlus アドバイザリー High · CVSS 7.5 fix-available

Uncontrolled XML entity expansion when reading untrusted workbooks

GHSA-f4h2-2r6m-w59r · CVE 未定 · 公開済み 2026-10-15

影響を受けたバージョンおよびパッチ適用済みバージョン
メジャーバージョン 影響を受ける パッチが入りました
EPPlus 8 8.7.0, 8.7.1 8.7.2
8.6.0 – 8.6.3 8.6.4
8.5.0 – 8.5.4 8.5.5
8.4.0 – 8.4.2 8.4.3
8.3.0, 8.3.1 8.3.2
8.2.0, 8.2.1 8.2.2
8.1.0, 8.1.1 8.1.2
8.0.1 – 8.0.8 8.0.9
EPPlus 7 7.7.0 – 7.7.3 7.7.4
7.6.0, 7.6.1 7.6.2
7.5.0 – 7.5.3 7.5.4
7.4.0 – 7.4.2 7.4.3
7.3.0 – 7.3.2 7.3.3
7.2.0 – 7.2.2 7.2.3
7.1.0 – 7.1.3 7.1.4
7.0.0 – 7.0.10 7.0.11

EPPlus 6, EPPlus 5: 影響を受けていますが、もはやサポート対象外であり、パッチ適用されません。サポートされているメジャーバージョンにアップグレードしてください。

概要
Summary

EPPlus parsed several XML parts without disabling DTD processing. A crafted file can declare nested XML entities that expand into a very large amount of memory. Because EPPlus retains the parsed content, and because some parts can be repeated many times in one package, an application that processes an untrusted workbook, template or style file can be driven into high memory consumption and long processing times (denial of service).

Most XML parts in EPPlus are read through an internal helper that prohibits DTDs. The following code paths did not use it:

Part Triggered by Targets Affected versions
External link parts (xl/externalLinks/externalLink*.xml) ExcelWorkbook.ExternalLinks. Also read internally when drawings with OLE objects are loaded, and when formulas, chart series or pivot caches with external references are processed All 7.0 – 8.7 (OLE-type links: 8.0 – 8.7)
Shared strings First access to ExcelPackage.Workbook, that is, when a workbook is opened net462, net35 only 7.1 – 8.7
Digital signature parts Saving a workbook that contains a digital signature origin, or reading ExcelWorkbook.DigitalSignatures All 8.0 – 8.7
SVG image detection (content is not retained, lower impact) Adding an image, or loading a workbook whose drawings contain images of unrecognized content type All 7.0 – 8.7
Chart templates (.crtx) ExcelDrawings.AddChartFromTemplate, ExcelChartStyleManager.LoadTemplateStyles All 7.0 – 8.7
Chart style libraries (.ecs) ExcelChartStyleManager.LoadStyles(Stream/FileInfo/DirectoryInfo) All 7.0 – 8.7

For chart style libraries, the content is kept in a static field and is re-parsed every time a default theme is created, so a malicious .ecs file affects all packages created afterwards in the same process.

The entity limit of the .NET XML parsers applies per document, not in total, so parts that are separate documents (for example one per external link or signature) multiply past it. A workbook of a few tens of kilobytes can cause allocation of more than a gigabyte.

Impact

An attacker who can make an application process a crafted file can exhaust the process memory and block the processing thread. [On the net35 target, external entities may also be resolved, which could allow requests to attacker-controlled URLs. This is being evaluated.]

CVSS 3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5, High).

Patches

DTD processing is now prohibited for all of the parts above. For SVG detection, DTDs are ignored and no resolver is used. Upgrade to the latest patch release of your minor version: [7.0.11, 7.1.4, 7.2.3, 7.3.3, 7.4.3, 7.5.4, 7.6.2, 7.7.4, 8.0.9, 8.1.2, 8.2.2, 8.3.2, 8.4.3, 8.5.5, 8.6.4, 8.7.2].

Versions before 7.0 are end of life, are affected, and will not be patched. Upgrade to a supported version.

[Note on behavior change: SVG files that declare their own entities in a DOCTYPE are no longer recognized as SVG. On net35, SVG files with a DOCTYPE are not recognized.]

Workarounds

Upgrade to a patched version. If that is not possible:

  • Reject untrusted workbooks before opening them, for example by checking

their XML parts for a <!DOCTYPE declaration.

  • Do not load .crtx or .ecs files from untrusted sources.
  • Apply size and memory limits when processing untrusted files.
References
推奨される行動
重症度
High (7.5)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
弱点
参考文献
出典
GitHub Security Advisoryから毎時間同期している。
← 脆弱性リストに戻る