Vulnerability DatabaseCVE-2026-129244

CVE-2026-129244: 
GeoServer vulnerability analysis and mitigation

Overview

CVE-2026-129244 is a path disclosure vulnerability in GeoServer's WFS (Web Feature Service) stored-query functionality. An unauthenticated attacker can submit an anonymous WFS request with an overlong stored-query ID to trigger an error response that reveals the absolute path of the GeoServer data directory. The CVE status is currently "Reserved" and no official CVSS score has been published, though Feedly estimates the severity as Medium. Affected versions include GeoServer releases prior to 3.0.2, 2.28.6, and 2.27.7, where the fix rejects oversized IDs before filesystem access and suppresses the path from exception messages (Feedly, GeoServer Advisory).

Technical details

The root cause is improper error handling (CWE-209: Generation of Error Message Containing Sensitive Information) in the WFS stored-query processing pipeline. When a stored-query ID exceeds a certain length (approximately 252 characters via GET, or 4092 characters via XML POST), GeoServer raises an exception that includes the full filesystem path to the stored-query XML file (e.g., <datadir>/wfs/query/<id>.xml) in the ExceptionText response body. The vulnerability requires no authentication and no user interaction — a single crafted HTTP GET or POST to the /wfs endpoint is sufficient. Critically, this path disclosure is the first step in a broader exploit chain (detailed in a public PoC) that chains this information leak with XInclude injection, remember-me cookie forgery, and HSQLDB/JDBC deserialization to achieve unauthenticated RCE (Feedly, GitHub PoC).

Impact

The direct impact of CVE-2026-129244 is disclosure of the GeoServer data directory's absolute filesystem path to any unauthenticated network attacker, compromising confidentiality of server configuration details. While this alone is an information disclosure, the leaked path is a prerequisite for a chained unauthenticated RCE attack (involving CVE-2026-129243 and CVE-2026-129245) that can result in full OS command execution as the GeoServer service account, enabling data exfiltration, lateral movement, and complete server compromise. Organizations running GeoServer with default configurations (enabled admin user, active remember-me service, writable data directory on Linux with Java 17/21) are at highest risk (Feedly, watchTowr).

Exploitability

A public, functional proof-of-concept exploit (geoserver_preauth_rce.py) is available on GitHub and implements the full unauthenticated RCE chain starting from this path disclosure primitive (GitHub PoC). Active in-the-wild exploitation has been confirmed by watchTowr and reported by multiple threat intelligence sources (watchTowr, SecurityWeek, The Hacker News). No EPSS score or CISA KEV catalog entry has been published at this time, consistent with the CVE's "Reserved" status. The exploit requires no authentication and no user interaction, making it trivially weaponizable against any internet-exposed GeoServer instance running a vulnerable version.

Exploitation steps

  1. Reconnaissance: Identify internet-facing GeoServer instances (pre-3.0.2, pre-2.28.6, pre-2.27.7) using Shodan, Censys, or similar tools by searching for GeoServer web UI banners or /geoserver/web/ endpoints.
  2. Trigger path disclosure (CVE-2026-129244): Send a GET request to /wfs?service=WFS&version=2.0.0&request=GetPropertyValue&storedQuery_id=AAAA... (252+ 'A' characters), or an XML POST with a <StoredQueryId> element containing 4092+ characters. Parse the ExceptionText in the error response using a regex to extract the data directory path (e.g., /opt/geoserver/data_dir/wfs/query/<id>.xml).
  3. XInclude injection via anonymous stored query: POST a CreateStoredQuery request with service=x/WFS and isPrivate=false, embedding escaped xi:include directives pointing to file://<datadir>/security/config.xml and file://<datadir>/security/usergroup/default/users.xml. Then GET DescribeStoredQueries to extract the remember-me service key and the admin password digest.
  4. Forge admin remember-me cookie: Compute SHA-256('admin@default:<expiry>:<digest>:<key>'), Base64-encode the four fields without padding, and send the resulting remember-me cookie to the GeoServer status page. Verify admin access via /rest/security/usergroupservices.
  5. Stage HSQLDB payload: As admin, use the REST API to PUT payload.properties, payload.script, and request.txt (containing a Base64-encoded OS command) into a randomly named staging directory (gs-rce-<token>) under the data directory. Register a JDBCUserGroupServiceConfig with connectURL=jdbc:hsqldb:file:<datadir>/<stage>/payload;shutdown=true.
  6. Trigger deserialization RCE: GET /rest/security/usergroup/service/jdbc_geoserver_poc/user/PWN/groups to cause GeoServer to deserialize the HSQLDB OTHER column, instantiating a CommandTranslet gadget chain (PriorityQueue/BeanComparator/TemplatesImpl) that executes the attacker-supplied /bin/sh command.
  7. Retrieve output and clean up: Poll GET of result.txt via the REST API until command output appears; then delete the JDBC service and staging directory via REST and DropStoredQuery calls to remove artifacts (GitHub PoC, watchTowr).

Indicators of compromise

  • Network: Anomalous HTTP GET requests to /wfs with storedQuery_id parameters containing 252+ repeated characters; HTTP POST requests to /wfs with oversized <StoredQueryId> XML elements; POST requests to /wfs with service=x/WFS and isPrivate=false in the body; unusual REST API calls to /rest/security/usergroupservices or /rest/security/usergroup/service/*/user/*/groups from unauthenticated or unexpected sources.
  • Logs: GeoServer access logs showing WFS ExceptionReport responses containing filesystem paths (e.g., /data_dir/wfs/query/); repeated CreateStoredQuery and DescribeStoredQueries requests in quick succession; REST API calls creating JDBC user-group services with hsqldb:file: connection URLs.
  • File System: Unexpected directories named gs-rce-<random> under the GeoServer data directory; presence of payload.properties, payload.script, request.txt, result.txt, or cleanup.txt files in the data directory; new or modified HSQLDB database files (.script, .properties) in unexpected locations.
  • Process: Unusual child processes spawned by the GeoServer JVM (e.g., /bin/sh, bash, curl, wget, python3) visible in process trees; outbound network connections from the GeoServer process to attacker-controlled infrastructure (GitHub PoC, Feedly).

Mitigation and workarounds

Upgrade GeoServer to version 3.0.2, 2.28.6, or 2.27.7, where oversized stored-query IDs are rejected before filesystem access and exception messages no longer include the data directory path (GeoServer Advisory). If immediate patching is not possible, implement network-level controls (WAF rules, firewall ACLs) to restrict access to the /wfs endpoint from untrusted sources, and disable or restrict WFS stored-query functionality if not operationally required. Additionally, consider disabling the remember-me authentication service and enforcing non-default admin credentials to break the broader exploit chain that depends on this path disclosure as its first step (Feedly, watchTowr).

Community reactions

watchTowr published a detailed FAQ and confirmed active exploitation of the GeoServer vulnerability chain in the wild, noting that attackers are actively probing patched and unpatched instances (watchTowr). SecurityWeek and The Hacker News both covered the active exploitation, highlighting the severity of the unauthenticated RCE chain enabled by chaining CVE-2026-129244 with related flaws (SecurityWeek, The Hacker News). The security research community reacted quickly, with Ostorlab, BrandeFense, sh3llc0d3, and ctipilot.ch publishing technical analyses within 48 hours of disclosure (Ostorlab Blog, BrandeFense). The Crypto-Cat GitHub PoC repository attracted significant attention as a fully functional exploit chain, reinforcing urgency around patching.

Additional resources


Source: This report was generated using AI

Related GeoServer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-129245CRITICAL9.2
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-129243HIGH8.8
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-120705HIGH8.6
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-120704HIGH7.2
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026
CVE-2026-129244MEDIUM6.9
  • GeoServer logoGeoServer
  • cpe:2.3:a:geoserver:geoserver
NoYesNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management