Descrizione
Denial of service through folded HTTP response headers. The HTTP stream wrapper joins each continuation line of a folded response header to the accumulated value by allocating a new string and copying the whole value, so a response with many short continuation lines takes disproportionate CPU time to parse. An attacker who controls an HTTP or HTTPS response fetched through file_get_contents(), fopen() or other stream functions, by making the application request a chosen URL or by influencing a server it already contacts, can keep PHP workers busy. Repeated or concurrent requests can cause a denial of service. This issue affects PHP versions from 8.1.32 through 8.1.34, from 8.2.28 before 8.2.36, from 8.3.18 before 8.3.37, from 8.4.5 before 8.4.28 and 8.5.* before 8.5.13.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.7, EPSS 0.4% (percentile 38).
Versioni da aggiornare
- PHP Group PHP: vulnerabili le versioni dalla
8.2.28precedenti alla8.2.36→ aggiornare alla8.2.36o successiva. - PHP Group PHP: vulnerabili le versioni dalla
8.3.18precedenti alla8.3.37→ aggiornare alla8.3.37o successiva. - PHP Group PHP: vulnerabili le versioni dalla
8.4.5precedenti alla8.4.28→ aggiornare alla8.4.28o successiva. - PHP Group PHP: vulnerabili le versioni dalla
8.5.0precedenti alla8.5.13→ aggiornare alla8.5.13o successiva. - PHP Group PHP: vulnerabili le versioni dalla
8.1.32fino alla8.1.34inclusa → aggiornare a una release successiva alla8.1.34.
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 |
|---|---|---|---|
| PHP Group | PHP | ≥ 8.2.28 < 8.2.36 | 8.2.36 |
| PHP Group | PHP | ≥ 8.3.18 < 8.3.37 | 8.3.37 |
| PHP Group | PHP | ≥ 8.4.5 < 8.4.28 | 8.4.28 |
| PHP Group | PHP | ≥ 8.5.0 < 8.5.13 | 8.5.13 |
| PHP Group | PHP | ≥ 8.1.32 ≤ 8.1.34 | — |