# GHSA-RV5G-G2R9-58RJ: Service security rules bypassed with a prefixed service name such as x/WFS

- Database: GitHub
- Severity: CVSS 8.8 (High)
- Published: 2026-11-23
- Modified: 2026-11-23

## Tracked as

- [CVE-2026-129243](https://cve.now/CVE-2026-129243.md): GeoServer authorization bypass in WFS service security checks

## Affected versions

- org.geoserver:gs-ows (Maven): from 3.0.0, through 3.0.1
- org.geoserver:gs-ows (Maven): from 2.28.0, through 2.28.5
- org.geoserver:gs-ows (Maven): through 2.27.6

## Description

A `service` parameter with a prefix, such as `service=x/WFS`, was resolved to the WFS service by the dispatcher, but
service security checked the unresolved name `x/WFS`. No rule matched, so operations restricted in service security
ran without a role check. The default configuration restricts `CreateStoredQuery` and `DropStoredQuery` to
administrators, so anonymous users could create and delete WFS stored queries.

This was also reported as step 2 of a remote command execution chain, see
[GHSA-hgm3-wq4h-8vvq](https://github.com/geoserver/geoserver/security/advisories/GHSA-hgm3-wq4h-8vvq).

### Impact

An unauthenticated user can call any OWS operation that is restricted only by service security rules
(**Security > Services**, `security/services.properties`). With the default rules this allows creating and deleting
WFS stored queries. Installations that restrict other operations this way, for example WFS `Transaction`, lose that
protection as well. Layer and data security rules still apply.

Stored queries created this way are the entry point for
[GHSA-39mw-5chv-jh47](https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47).

### Details

`Dispatcher.findService` strips everything up to `/` from the service id to choose the service, while
`OperationSecurityCallback` matched rules against the `service` value of the request, which still held `x/WFS`.

### Mitigation

Block requests whose `service` parameter contains `/`, in the query string or in the `service` attribute of an XML
request, at a proxy in front of GeoServer.

Review the data directory `wfs/query` and `workspaces/*/wfs/query` folders for stored queries you did not create.

### Resolution

Patched for:
* GeoServer 3.0.2
* GeoServer 2.28.6
* GeoServer 2.27.7

The dispatcher now sets the request service to the resolved service id, so service security checks the service
that runs. No manual steps required.

### References

* [GEOS-12195](https://osgeo-org.atlassian.net/browse/GEOS-12195)
* [GHSA-39mw-5chv-jh47](https://github.com/geoserver/geoserver/security/advisories/GHSA-39mw-5chv-jh47)
* [GHSA-hgm3-wq4h-8vvq](https://github.com/geoserver/geoserver/security/advisories/GHSA-hgm3-wq4h-8vvq)
* [Service security](https://docs.geoserver.org/stable/en/user/security/service/)

## References

- https://github.com/geoserver/geoserver/security/advisories/GHSA-rv5g-g2r9-58rj

Page: https://cve.now/GHSA-RV5G-G2R9-58RJ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
