CVE-2025-27505
JSON

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 packageVersionsReported by
geoserver geoserver>= 2.26.0, < 2.26.3, < 2.25.6CVE List
org.geoserver.web:gs-web-app (Maven)from 2.26.0 before 2.26.3, before 2.25.6GitHub Advisory Database
org.geoserver:gs-rest (Maven)from 2.26.0 before 2.26.3, before 2.25.6GitHub Advisory Database
osgeo geoserverbefore 2.25.6, from 2.26.0 before 2.26.3NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-862

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

Sources

SourceRecordLicence
CVE ListCVE-2025-27505 changed 2025-06-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-h86g-x8mm-78m5 changed 2025-06-10CC-BY-4.0
NVDCVE-2025-27505 changed 2026-06-17Public domain