5.3medium
GeoServer Missing Authorization on REST API Index
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.22% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-h86g-x8mm-78m5
Description
GeoServer is an open source server that allows users to share and edit geospatial data. It is possible to bypass the default REST API security and access the index page. The REST API security handles rest and its subpaths but not rest with an extension (e.g., rest.html). The REST API index can disclose whether certain extensions are installed. This vulnerability is fixed in 2.26.3 and 2.25.6. As a workaround, in ${GEOSERVER_DATA_DIR}/security/config.xml, change the paths for the rest filter to /rest.*,/rest/** and change the paths for the gwc filter to /gwc/rest.*,/gwc/rest/** and restart GeoServer.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| geoserver geoserver | >= 2.26.0, < 2.26.3, < 2.25.6 | CVE List |
| org.geoserver.web:gs-web-app (Maven) | from 2.26.0 before 2.26.3, before 2.25.6 | GitHub Advisory Database |
| org.geoserver:gs-rest (Maven) | from 2.26.0 before 2.26.3, before 2.25.6 | GitHub Advisory Database |
| osgeo geoserver | before 2.25.6, from 2.26.0 before 2.26.3 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
GeoServer is an open source server that allows users to share and edit geospatial data. It is possible to bypass the default REST API security and access the index page. The REST API security handles rest and its subpaths but not rest with an extension (e.g., rest.html). The REST API index can disclose whether certain extensions are installed. This vulnerability is fixed in 2.26.3 and 2.25.6. As a workaround, in ${GEOSERVER_DATA_DIR}/security/config.xml, change the paths for the rest filter to /rest.*,/rest/** and change the paths for the gwc filter to /gwc/rest.*,/gwc/rest/** and restart GeoServer.
GitHub Advisory Database
Summary
It is possible to bypass the default REST API security and access the index page.
Details
The REST API security handles rest and its subpaths but not rest with an extension (e.g., rest.html).
Impact
The REST API index can disclose whether certain extensions are installed.
Workaround
In ${GEOSERVER_DATA_DIR}/security/config.xml, change the paths for the rest filter to /rest.*,/rest/** and change the paths for the gwc filter to /gwc/rest.*,/gwc/rest/** and restart GeoServer.
References
https://osgeo-org.atlassian.net/browse/GEOS-11664
https://osgeo-org.atlassian.net/browse/GEOS-11776
https://github.com/geoserver/geoserver/pull/8170
NVD (es)
GeoServer es un servidor de código abierto que permite a los usuarios compartir y editar datos geoespaciales. Es posible eludir la seguridad predeterminada de la API REST y acceder a la página de índice. La seguridad de la API REST gestiona rest y sus subrutas, pero no rest con una extensión (p. ej., rest.html). El índice de la API REST puede revelar si ciertas extensiones están instaladas. Esta vulnerabilidad se corrigió en las versiones 2.26.3 y 2.25.6. Como solución alternativa, en ${GEOSERVER_DATA_DIR}/security/config.xml, cambie las rutas del filtro rest a /rest.*,/rest/** y las del filtro gwc a /gwc/rest.*,/gwc/rest/** y reinicie GeoServer.
References
| https://github.com/geoserver/geoserver/security/advisories/GHSA-h86g-x8mm-78m5 | third-party-advisory, web | |
| https://github.com/geoserver/geoserver/pull/8170 | patch, web | |
| https://osgeo-org.atlassian.net/browse/GEOS-11664 | issue-tracking, patch, web | |
| https://osgeo-org.atlassian.net/browse/GEOS-11776 | permissions-required, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-27505 | advisory | |
| https://github.com/geoserver/geoserver | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-27505 changed 2025-06-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h86g-x8mm-78m5 changed 2025-06-10 | CC-BY-4.0 |
| NVD | CVE-2025-27505 changed 2026-06-17 | Public domain |