Description
ExcelJS through 4.4.0 contains a memory exhaustion vulnerability that allows attackers to crash applications by supplying a workbook with an unbounded image anchor column in the drawing part. Attackers can set an anchor column such as 300000000 in xl/drawings/drawing1.xml so reading getImages() anchor positions makes Worksheet.getColumn allocate millions of Column objects and abort with a heap out-of-memory error.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| exceljs | exceljs | ≤ 4.4.0 | — |
References
- https://github.com/exceljs/exceljs product
- GitHub Security Advisory (GHSA-cqmf-h7c5-g7xx) third-party-advisory
- https://github.com/exceljs/exceljs/blob/v4.4.0/lib/doc/anchor.js#L40-L64 technical-description
- https://github.com/exceljs/exceljs/blob/v4.4.0/lib/doc/worksheet.js#L243-L261 technical-description
- VulnCheck Advisory: ExcelJS through 4.4.0 Memory Exhaustion via Oversized Image Anchor Column third-party-advisory