Loading HuntDB...

GHSA-h86g-x8mm-78m5

GitHub Security Advisory

GeoServer Missing Authorization on REST API Index

✓ GitHub Reviewed MODERATE Has CVE

Advisory Details

### 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

Affected Packages

Maven org.geoserver.web:gs-web-app
Affected versions: 2.26.0 (fixed in 2.26.3)
Maven org.geoserver.web:gs-web-app
Affected versions: 0 (fixed in 2.25.6)
Maven org.geoserver:gs-rest
Affected versions: 2.26.0 (fixed in 2.26.3)
Maven org.geoserver:gs-rest
Affected versions: 0 (fixed in 2.25.6)

Related CVEs

Key Information

GHSA ID
GHSA-h86g-x8mm-78m5
Published
June 10, 2025 7:16 PM
Last Modified
June 10, 2025 7:16 PM
CVSS Score
5.0 /10
Primary Ecosystem
Maven
Primary Package
org.geoserver.web:gs-web-app
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 11, 2025 6:35 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.