Descrizione
MapServer is a system for developing web-based GIS applications. From 4.4.0 until 8.6.5, an unauthenticated remote attacker can send a WCS GetCoverage XML POST request whose BoundingBox element omits the crs attribute, causing xmlGetProp() in src/mapwcs.cpp to return null. msWCSParseRequest() then calls string functions on the null value before normal WCS exception handling, crashing the CGI or FastCGI worker. The analogous KVP or GET path is not affected because it obtains a count-validated, non-null token. A single request can terminate one worker, and repeated requests can exhaust a fixed worker pool and deny service. This issue is fixed in version 8.6.5.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5, EPSS 1.5% (percentile 75).
Versioni da aggiornare
- MapServer MapServer: vulnerabile la versione
>= 4.4.0, < 8.6.5→ installare l'ultima release supportata dal vendor.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre la superficie esposta (disattivare servizi e funzionalità inutilizzati), mantenere attive le protezioni del sistema operativo (ASLR, DEP/NX) e segmentare la rete.
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 |
|---|---|---|---|
| MapServer | MapServer | >= 4.4.0, < 8.6.5 | — |
Riferimenti
- Riferimentohttps://github.com/MapServer/MapServer/commit/3d2bed5de60b2947e39c608cfad4b31d56aeae0e
- Riferimentohttps://github.com/MapServer/MapServer/commit/debd347ae53caa4969f87fd9dae5ff73a42d48a0
- Riferimentohttps://github.com/MapServer/MapServer/pull/7556
- Riferimentohttps://github.com/MapServer/MapServer/pull/7568
- Riferimentohttps://github.com/MapServer/MapServer/releases/tag/rel-8-6-5
- Riferimentohttps://github.com/MapServer/MapServer/security/advisories/GHSA-35qh-49hm-5rcx
- Riferimentohttps://github.com/MapServer/MapServer/security/advisories/GHSA-35qh-49hm-5rcx