# GHSA-4V26-C537-JVXC: WFS stored query exception discloses data directory path

- Database: GitHub
- Severity: CVSS 6.9 (Medium)
- Published: 2026-11-23
- Modified: 2026-11-23

## Affected versions

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

## Description

A WFS stored query request with an overlong id returned an exception report containing the absolute data directory
path.

This was reported as step 1 of an unauthenticated remote command execution chain, see
[GHSA-hgm3-wq4h-8vvq](https://github.com/geoserver/geoserver/security/advisories/GHSA-hgm3-wq4h-8vvq).

### Impact

An unauthenticated user learns the absolute data directory path. This is not harmful by itself, but other attacks
need it, for example to build `file:` references to data directory files.

### Details

The stored query id is mapped to a file name in the data directory. An id longer than the file system name limit
failed with a file system error, and the WFS exception report included the error message with the full path.

### Mitigation

None needed beyond upgrading; the path alone gives no access.

### Resolution

Patched for:
* GeoServer 3.0.2
* GeoServer 2.28.6
* GeoServer 2.27.7

Overlong stored query ids are rejected with a short error, and file system errors are logged instead of returned to
the client. No manual steps required.

### References

* [GEOS-12240](https://osgeo-org.atlassian.net/browse/GEOS-12240)
* [GHSA-hgm3-wq4h-8vvq](https://github.com/geoserver/geoserver/security/advisories/GHSA-hgm3-wq4h-8vvq)

## References

- https://github.com/geoserver/geoserver/security/advisories/GHSA-4v26-c537-jvxc

Page: https://cve.now/GHSA-4V26-C537-JVXC

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