Descrizione
AutoMapper is a convention-based object-object mapper in .NET. Prior to 15.1.4 and from 16.0.0 until 16.3.0, AutoMapper can recurse without an effective MaxDepth limit when mapping polymorphic graphs through Include or IncludeBase, runtime-typed object or interface members, nested Dictionary<string, object> or ExpandoObject sources, or recursive ConvertUsing type converters. Deep attacker-influenced graphs on these paths can throw an uncatchable StackOverflowException and terminate the process. This issue is fixed in versions 15.1.4 and 16.3.0.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 0.5% (percentile 46).
Versioni da aggiornare
- LuckyPennySoftware AutoMapper: vulnerabile la versione
>= 16.0.0, < 16.3.0→ installare l'ultima release supportata dal vendor. - LuckyPennySoftware AutoMapper: vulnerabile la versione
< 15.1.4→ installare l'ultima release supportata dal vendor.
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 |
|---|---|---|---|
| LuckyPennySoftware | AutoMapper | >= 16.0.0, < 16.3.0 | — |
| LuckyPennySoftware | AutoMapper | < 15.1.4 | — |
Riferimenti
- Riferimentohttps://github.com/LuckyPennySoftware/AutoMapper/commit/aee81b50574c3c7005283cca2b2396e295bd8ed9
- Riferimentohttps://github.com/LuckyPennySoftware/AutoMapper/commit/bdbbf5967d20d28e611ab65de1d96d1047a95ab9
- Riferimentohttps://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v15.1.4
- Riferimentohttps://github.com/LuckyPennySoftware/AutoMapper/releases/tag/v16.3.0
- Riferimentohttps://github.com/LuckyPennySoftware/AutoMapper/security/advisories/GHSA-gpwp-5797-mjff