GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF)
Summary
An improper URI validation vulnerability exists that enables an unauthorized attacker to perform XML External Entities (XEE) attack, then send GET request to any HTTP server. Attacker can abuse this to scan internal networks and gain information about them then exploit further. Moreover, attacker can read limited .xsd file on system.
Details
By default, GeoServer use PreventLocalEntityResolver class from GeoTools to filter out malicious URIs in XML entities before resolving them. The URI must match the regex (?i)(jar:file|http|vfs)[^?#;]*\\.xsd. But the regex leaves a chance for attackers to request to any HTTP server or limited file.
Impact
An unauthenticated attacker can:
- Scan internal network to gain insight about it and exploit further.
- SSRF to endpoint ends with
.xsd. - Read limited
.xsdfile on system.
Mitigation
- Define the system property
ENTITY_RESOLUTION_ALLOWLISTto limit the supported external schema locaitons. - The built-in allow list covers the locations required for the operation of OGC web services:
www.w3.org,schemas.opengis.net,www.opengis.net,inspire.ec.europa.eu/schemas. - The user guide provides details on how to add additional locations (this is required for app-schema plugin where a schema is supplied to define an output format).
Resolution
- GeoServer 2.25.0 and greater default to the use of
ENTITY_RESOLUTION_ALLOWLISTand does not require you to provide a system property. - The use of
ENTITY_RESOLUTION_ALLOWLISTis still supported if you require additional schema locations to be supported beyond the built-in allow list. - GeoServer 2.25.1 change
ENTITY_RESOLUTION_ALLOWLISTno longer supports regular expressions
References
- External Entities Resolution (GeoServer User Guide)
Credits
- Le Mau Anh Phong from VNG Security Response Center & VNUHCM - University of Information Technology
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Java / Kotlin (Maven) | org.geoserver.main:gs-main | < 2.25.0 | 2.25.0 |
| Java / Kotlin (Maven) | org.geoserver.web:gs-web-app | < 2.25.0 | 2.25.0 |
Referencias
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N- Debilidad (CWE)
CWE-20, CWE-200, CWE-611, CWE-918- Plataforma
- Java / Kotlin (Maven)
- Paquete
org.geoserver.main:gs-main, org.geoserver.web:gs-web-app- Publicada
- 10.06.2025
- Actualizado
- 11.10.2026 12:21
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-mc43-4fqr-c965 - CC BY 4.0
Historial de vulnerabilidades: org.geoserver.web:gs-web-app
Todas las vulnerabilidades publicadas de este paquete (Java / Kotlin (Maven)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 16
- Primera → última
- 10.2023 08.2026
- Sin corrección
- 0
- Explotada en ataques
- 2
Distribución por gravedad
- Crítica 2
- Alta 6
- Media 8
Divulgaciones por año
- 2023: 1
- 2024: 4
- 2025: 8
- 2026: 3
-
GeoServer has improper ENTITY_RESOLUTION_ALLOWLIST URI validation in XML Processing (SSRF) esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.