CVE-2025-27505: GeoServer Missing Authorization on REST API Index
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 ${GEOSERVERDATADIR}/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
Other sources
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 ${GEOSERVERDATADIR}/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.
— MITRE
Affected Software
Remediation
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2025-27505?
CVE-2025-27505 is a moderate severity vulnerability that allows for unauthorized access to the REST API index page.
How do I fix CVE-2025-27505?
To fix CVE-2025-27505, update to the version 2.25.6 or 2.26.3 of the affected GeoServer components.
What are the affected versions for CVE-2025-27505?
CVE-2025-27505 affects GeoServer versions prior to 2.25.6 and between 2.26.0 and 2.26.3.
What does CVE-2025-27505 allow an attacker to do?
CVE-2025-27505 allows an attacker to bypass default REST API security and access the index page of the REST API.
Which packages are affected by CVE-2025-27505?
CVE-2025-27505 affects the org.geoserver:gs-rest and org.geoserver.web:gs-web-app packages.