Descrizione
CGI versions before 5.00 for Perl allow memory, CPU and disk exhaustion via missing or unenforced request size, parameter and upload limits. $CGI::POST_MAX defaults to no limit, and when set is not enforced for chunked multipart bodies or for the boundary line of a multipart body without a boundary= parameter. Bodies saved as PUTDATA, POSTDATA or PATCHDATA uploads are read into memory in one go, and nothing limits the number of parameters or uploads.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 6.5, EPSS 0.2% (percentile 8).
Versioni da aggiornare
- CGI: vulnerabili le versioni precedenti alla
5.00→ aggiornare alla5.00o successiva.
Indicazioni del vendor
Soluzione (testo originale del vendor):
Upgrade to CGI 5.00 or later.
Workaround (testo originale del vendor):
For deployments that cannot upgrade, limit the request body size at the web server and set $CGI::POST_MAX.
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 |
|---|---|---|---|
| — | CGI | < 5.00 | 5.00 |
Riferimenti
- Riferimentohttps://github.com/leejo/CGI.pm/commit/17b838dc14d2b82ae6c7e76f66ec2c3f3b08038b.patch
- Riferimentohttps://github.com/leejo/CGI.pm/commit/277baeb74fde7bce975a7bd0a1f98dcf1b9b2050.patch
- Riferimentohttps://github.com/leejo/CGI.pm/commit/8940a74e53a41563f72813b45f99cceaaa4c92e8.patch
- Riferimentohttps://github.com/leejo/CGI.pm/commit/f3febefe63fe3881d8c3ae10fa83ca8ec950b959.patch
- Riferimentohttps://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI.pm
- Riferimentohttps://metacpan.org/release/LEEJO/CGI-5.00/changes