Descrizione
ExcelJS through 4.4.0 contains a memory exhaustion vulnerability in Worksheet._parseMergeCells that allows attackers to crash applications by supplying unbounded mergeCell ranges. Attackers can craft a small workbook with a mergeCell ref like A1:XFD1048576, causing xlsx.load() to create billions of Row and Cell objects and abort the process.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.6% (percentile 51).
Versioni da aggiornare
- Exceljs Project Exceljs: vulnerabili le versioni fino alla
4.4.0inclusa → aggiornare a una release successiva alla4.4.0. - exceljs exceljs: vulnerabili le versioni fino alla
4.4.0inclusa → aggiornare a una release successiva alla4.4.0.
Patch e advisory
- Patch: github.com/exceljs/exceljs/pull/3114
- Advisory di terze parti: www.vulncheck.com/advisories/exceljs-through-4.4.0-mem…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Exceljs Project | Exceljs | ≤ 4.4.0 | — |
| exceljs | exceljs | ≤ 4.4.0 | — |
Riferimenti
- Patchhttps://github.com/exceljs/exceljs/pull/3114
- Exploit pubblicohttps://github.com/mateocallec/exceljs-hardened/security/advisories/GHSA-wh3v-83h4-rwwq
- Advisory di terze partihttps://www.vulncheck.com/advisories/exceljs-through-4.4.0-memory-exhaustion-via-oversized-merged-cell-range
- Riferimentohttps://github.com/exceljs/exceljs
- Riferimentohttps://github.com/exceljs/exceljs/blob/v4.4.0/lib/doc/worksheet.js#L613-L632
- Riferimentohttps://github.com/exceljs/exceljs/blob/v4.4.0/lib/doc/worksheet.js#L895-L901
- Riferimentohttps://github.com/exceljs/exceljs/issues/3107